mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Ensure _.first supports shortcut fusion. [closes #2447]
This commit is contained in:
@@ -16545,6 +16545,9 @@
|
||||
lodash.prototype.reverse = wrapperReverse;
|
||||
lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;
|
||||
|
||||
// Add lazy aliases.
|
||||
lodash.prototype.first = lodash.prototype.head;
|
||||
|
||||
if (iteratorSymbol) {
|
||||
lodash.prototype[iteratorSymbol] = wrapperToIterator;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user