Last change
on this file since 6fe77af was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
497 bytes
|
Line | |
---|
1 | var baseInverter = require('./_baseInverter');
|
---|
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 | module.exports = createInverter;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.