Bump to v3.8.0.

This commit is contained in:
jdalton
2015-04-19 09:18:54 -07:00
parent 863bb301bb
commit 53c14e5b9b
58 changed files with 538 additions and 405 deletions

View File

@@ -1,6 +1,5 @@
var baseEach = require('./baseEach'),
getLength = require('./getLength'),
isLength = require('./isLength');
isArrayLike = require('./isArrayLike');
/**
* The base implementation of `_.map` without support for callback shorthands
@@ -13,8 +12,7 @@ var baseEach = require('./baseEach'),
*/
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);