mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Apply even more let/const transforms.
This commit is contained in:
2
map.js
2
map.js
@@ -46,7 +46,7 @@ import isArray from './isArray.js';
|
||||
* // => ['barney', 'fred']
|
||||
*/
|
||||
function map(collection, iteratee) {
|
||||
var func = isArray(collection) ? arrayMap : baseMap;
|
||||
const func = isArray(collection) ? arrayMap : baseMap;
|
||||
return func(collection, baseIteratee(iteratee, 3));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user