mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 20:07:49 +00:00
set "_" extern for use with Closure Compilers ADVANCED_OPTIMIZATIONS
This commit is contained in:
@@ -55,7 +55,7 @@
|
|||||||
module.exports = _;
|
module.exports = _;
|
||||||
_._ = _;
|
_._ = _;
|
||||||
} else {
|
} else {
|
||||||
root._ = _;
|
root['_'] = _;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Current version.
|
// Current version.
|
||||||
@@ -250,7 +250,7 @@
|
|||||||
return a < b ? -1 : a > b ? 1 : 0;
|
return a < b ? -1 : a > b ? 1 : 0;
|
||||||
}), 'value');
|
}), 'value');
|
||||||
};
|
};
|
||||||
|
|
||||||
// Groups the object's values by a criterion produced by an iterator
|
// Groups the object's values by a criterion produced by an iterator
|
||||||
_.groupBy = function(obj, iterator) {
|
_.groupBy = function(obj, iterator) {
|
||||||
var result = {};
|
var result = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user