Bump to v3.8.0.

This commit is contained in:
jdalton
2015-04-29 21:07:42 -07:00
parent 5eb8db31d7
commit d7b2bedafc
58 changed files with 300 additions and 194 deletions

View File

@@ -1,6 +1,5 @@
import baseEach from './baseEach';
import getLength from './getLength';
import isLength from './isLength';
import isArrayLike from './isArrayLike';
/**
* The base implementation of `_.map` without support for callback shorthands
@@ -13,8 +12,7 @@ import isLength from './isLength';
*/
function baseMap(collection, iteratee) {
var index = -1,
length = getLength(collection),
result = isLength(length) ? Array(length) : [];
result = isArrayLike(collection) ? Array(collection.length) : [];
baseEach(collection, function(value, key, collection) {
result[++index] = iteratee(value, key, collection);