Use more Array#map.

This commit is contained in:
John-David Dalton
2017-03-20 22:33:32 -07:00
parent 0acb2847bf
commit f3e0cbe5bf
3 changed files with 3 additions and 7 deletions

View File

@@ -1,4 +1,3 @@
import arrayMap from './arrayMap.js'
import isSymbol from '../isSymbol.js'
/** Used as references for various `Number` constants. */
@@ -23,7 +22,7 @@ function baseToString(value) {
}
if (Array.isArray(value)) {
// Recursively convert values (susceptible to call stack limits).
return `${ arrayMap(value, baseToString) }`
return `${ value.map(baseToString) }`
}
if (isSymbol(value)) {
return symbolToString ? symbolToString.call(value) : ''