Remove apply.

This commit is contained in:
John-David Dalton
2017-02-23 23:02:35 -08:00
parent b9c61eea60
commit 37f168d466
11 changed files with 11 additions and 45 deletions

View File

@@ -1,4 +1,3 @@
import apply from './.internal/apply.js'
import baseEach from './.internal/baseEach.js'
import invoke from './invoke.js'
import isArrayLike from './isArrayLike.js'
@@ -30,7 +29,7 @@ function invokeMap(collection, path, args) {
const result = isArrayLike(collection) ? Array(collection.length) : []
baseEach(collection, value => {
result[++index] = isFunc ? apply(path, value, args) : invoke(value, path, args)
result[++index] = isFunc ? path.apply(value, args) : invoke(value, path, args)
})
return result
}