mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Move internal modules to “internal” folder.
This commit is contained in:
14
.internal/createInverter.js
Normal file
14
.internal/createInverter.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import baseInverter from './.internal/baseInverter.js';
|
||||
|
||||
/**
|
||||
* Creates a function like `invertBy`.
|
||||
*
|
||||
* @private
|
||||
* @param {Function} setter The function to set accumulator values.
|
||||
* @returns {Function} Returns the new inverter function.
|
||||
*/
|
||||
function createInverter(setter) {
|
||||
return (object, iteratee) => baseInverter(object, setter, iteratee, {});
|
||||
}
|
||||
|
||||
export default createInverter;
|
||||
Reference in New Issue
Block a user