mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Remove apply.
This commit is contained in:
4
over.js
4
over.js
@@ -1,4 +1,3 @@
|
||||
import apply from './.internal/apply.js'
|
||||
import arrayMap from './.internal/arrayMap.js'
|
||||
|
||||
/**
|
||||
@@ -19,8 +18,7 @@ import arrayMap from './.internal/arrayMap.js'
|
||||
*/
|
||||
function over(iteratees) {
|
||||
return function(...args) {
|
||||
const thisArg = this
|
||||
return arrayMap(iteratees, iteratee => apply(iteratee, thisArg, args))
|
||||
return arrayMap(iteratees, iteratee => iteratee.apply(this, args))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user