mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +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);
|
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() {
|
test('should treat objects created by `Object.create(null)` like any other plain object', 2, function() {
|
||||||
function Foo() { this.a = 1; }
|
function Foo() { this.a = 1; }
|
||||||
Foo.prototype.constructor = null;
|
Foo.prototype.constructor = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user