Add isIterateeCall guards to _.every and _.some. [closes #1035]

This commit is contained in:
jdalton
2015-03-10 09:21:01 -07:00
parent 508f27cc32
commit f063b4d231
2 changed files with 19 additions and 3 deletions

View File

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