mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Add isIterateeCall guards to _.every and _.some. [closes #1035]
This commit is contained in:
10
test/test.js
10
test/test.js
@@ -4276,6 +4276,11 @@
|
||||
deepEqual(actual, expected);
|
||||
});
|
||||
|
||||
test('should work as an iteratee for `_.map`', 1, function() {
|
||||
var actual = _.map([[1]], _.every);
|
||||
deepEqual(actual, [true]);
|
||||
});
|
||||
|
||||
test('should be aliased', 1, function() {
|
||||
strictEqual(_.all, _.every);
|
||||
});
|
||||
@@ -12954,6 +12959,11 @@
|
||||
deepEqual(actual, expected);
|
||||
});
|
||||
|
||||
test('should work as an iteratee for `_.map`', 1, function() {
|
||||
var actual = _.map([[1]], _.some);
|
||||
deepEqual(actual, [true]);
|
||||
});
|
||||
|
||||
test('should be aliased', 1, function() {
|
||||
strictEqual(_.any, _.some);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user