mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
built dist files after adding oneToMany support to _.invert
This commit is contained in:
@@ -2547,9 +2547,7 @@
|
||||
* _.invert({ 'first': 'fred', 'second': 'barney' });
|
||||
* // => { 'fred': 'first', 'barney': 'second' }
|
||||
*
|
||||
* _.invert({ 'first': 'fred', 'second': 'barney', 'third': 'fred' }, true);
|
||||
* // => { 'fred': ['first', 'third'], 'barney': ['second'] }
|
||||
*/
|
||||
n */
|
||||
function invert(object, oneToMany) {
|
||||
var index = -1,
|
||||
props = keys(object),
|
||||
|
||||
Reference in New Issue
Block a user