main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
495 bytes
|
Line | |
---|
1 | import baseInverter from './_baseInverter.js';
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * Creates a function like `_.invertBy`.
|
---|
5 | *
|
---|
6 | * @private
|
---|
7 | * @param {Function} setter The function to set accumulator values.
|
---|
8 | * @param {Function} toIteratee The function to resolve iteratees.
|
---|
9 | * @returns {Function} Returns the new inverter function.
|
---|
10 | */
|
---|
11 | function createInverter(setter, toIteratee) {
|
---|
12 | return function(object, iteratee) {
|
---|
13 | return baseInverter(object, setter, toIteratee(iteratee), {});
|
---|
14 | };
|
---|
15 | }
|
---|
16 |
|
---|
17 | export default createInverter;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.