Ensure _.first supports shortcut fusion. [closes #2447]

This commit is contained in:
John-David Dalton
2016-06-24 07:04:59 -07:00
parent fa29123c5e
commit 50bf1ea784
2 changed files with 56 additions and 46 deletions

View File

@@ -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;
}