mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Use more Array#map.
This commit is contained in:
@@ -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) : ''
|
||||
|
||||
Reference in New Issue
Block a user