1 | import apply from './_apply';
|
2 | import arrayMap from './_arrayMap';
|
3 | import baseFlatten from './_baseFlatten';
|
4 | import baseIteratee from './_baseIteratee';
|
5 | import isFlattenableIteratee from './_isFlattenableIteratee';
|
6 | import rest from './rest';
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | function createOver(arrayFunc) {
|
16 | return rest(function(iteratees) {
|
17 | iteratees = arrayMap(baseFlatten(iteratees, 1, isFlattenableIteratee), baseIteratee);
|
18 | return rest(function(args) {
|
19 | var thisArg = this;
|
20 | return arrayFunc(iteratees, function(iteratee) {
|
21 | return apply(iteratee, thisArg, args);
|
22 | });
|
23 | });
|
24 | });
|
25 | }
|
26 |
|
27 | export default createOver;
|