|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- var arrayMap = require('./_arrayMap'),
- baseIteratee = require('./_baseIteratee'),
- baseMap = require('./_baseMap'),
- isArray = require('./isArray');
-
-
- function map(collection, iteratee) {
- var func = isArray(collection) ? arrayMap : baseMap;
- return func(collection, baseIteratee(iteratee, 3));
- }
-
- module.exports = map;
|