mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Optimize _.max and _.min when invoked with iteratees and add _.gt, _.gte, _.lt, _.lte, & _.eq.
This commit is contained in:
@@ -17816,7 +17816,7 @@
|
||||
|
||||
var acceptFalsey = _.difference(allMethods, rejectFalsey);
|
||||
|
||||
test('should accept falsey arguments', 220, function() {
|
||||
test('should accept falsey arguments', 225, function() {
|
||||
var emptyArrays = _.map(falsey, _.constant([])),
|
||||
isExposed = '_' in root,
|
||||
oldDash = root._;
|
||||
@@ -17982,8 +17982,9 @@
|
||||
});
|
||||
|
||||
test('should not contain minified method names (test production builds)', 1, function() {
|
||||
var shortNames = ['at', 'eq', 'gt', 'lt'];
|
||||
ok(_.every(_.functions(_), function(methodName) {
|
||||
return methodName.length > 2 || methodName === 'at';
|
||||
return methodName.length > 2 || _.includes(shortNames, methodName);
|
||||
}));
|
||||
});
|
||||
}());
|
||||
|
||||
Reference in New Issue
Block a user