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,8 +1,7 @@
import baseEach from '../internal/baseEach';
import getLength from '../internal/getLength';
import invokePath from '../internal/invokePath';
import isArrayLike from '../internal/isArrayLike';
import isKey from '../internal/isKey';
import isLength from '../internal/isLength';
import restParam from '../function/restParam';
/**
@@ -31,8 +30,7 @@ var invoke = restParam(function(collection, path, args) {
var index = -1,
isFunc = typeof path == 'function',
isProp = isKey(path),
length = getLength(collection),
result = isLength(length) ? Array(length) : [];
result = isArrayLike(collection) ? Array(collection.length) : [];
baseEach(collection, function(value) {
var func = isFunc ? path : (isProp && value != null && value[path]);