mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 23:37:49 +00:00
Add _.isEqual test for being used as a callback for _.every.
This commit is contained in:
@@ -4226,6 +4226,11 @@
|
||||
strictEqual(actual, false);
|
||||
});
|
||||
|
||||
test('should work when used as `callback` for `_.every`', 1, function() {
|
||||
var actual = _.every([1, 1, 1], _.partial(_.isEqual, 1));
|
||||
ok(actual);
|
||||
});
|
||||
|
||||
test('should treat objects created by `Object.create(null)` like any other plain object', 2, function() {
|
||||
function Foo() { this.a = 1; }
|
||||
Foo.prototype.constructor = null;
|
||||
|
||||
Reference in New Issue
Block a user