mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Remove references to _.
This commit is contained in:
@@ -7,14 +7,13 @@ const objectProto = Object.prototype;
|
||||
const hasOwnProperty = objectProto.hasOwnProperty;
|
||||
|
||||
/**
|
||||
* This method is like `_.invert` except that the inverted object is generated
|
||||
* This method is like `invert` except that the inverted object is generated
|
||||
* from the results of running each element of `object` thru `iteratee`. The
|
||||
* corresponding inverted value of each inverted key is an array of keys
|
||||
* responsible for generating the inverted value. The iteratee is invoked
|
||||
* with one argument: (value).
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.1.0
|
||||
* @category Object
|
||||
* @param {Object} object The object to invert.
|
||||
@@ -24,7 +23,7 @@ const hasOwnProperty = objectProto.hasOwnProperty;
|
||||
*
|
||||
* var object = { 'a': 1, 'b': 2, 'c': 1 };
|
||||
*
|
||||
* _.invertBy(object, function(value) {
|
||||
* invertBy(object, function(value) {
|
||||
* return 'group' + value;
|
||||
* });
|
||||
* // => { 'group1': ['a', 'c'], 'group2': ['b'] }
|
||||
|
||||
Reference in New Issue
Block a user