mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Remove unary helpers.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import apply from './_apply.js';
|
||||
import arrayMap from './_arrayMap.js';
|
||||
import baseIteratee from './_baseIteratee.js';
|
||||
import baseUnary from './_baseUnary.js';
|
||||
|
||||
/**
|
||||
* Creates a function like `_.over`.
|
||||
@@ -12,7 +11,7 @@ import baseUnary from './_baseUnary.js';
|
||||
*/
|
||||
function createOver(arrayFunc) {
|
||||
return (...iteratees) => {
|
||||
iteratees = arrayMap(iteratees, baseUnary(baseIteratee));
|
||||
iteratees = arrayMap(iteratees, iteratee => baseIteratee(iteratee));
|
||||
return (...args) => {
|
||||
const thisArg = this;
|
||||
return arrayFunc(iteratees, iteratee => apply(iteratee, thisArg, args));
|
||||
|
||||
Reference in New Issue
Block a user