deep-equal
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -16,3 +16,3 @@ var pSlice = Array.prototype.slice; | ||
// equivalence is determined by ==. | ||
} else if (typeof actual != 'object' && typeof expected != 'object') { | ||
} else if (!actual || !expected || typeof actual != 'object' && typeof expected != 'object') { | ||
return opts.strict ? actual === expected : actual == expected; | ||
@@ -19,0 +19,0 @@ |
{ | ||
"name": "deep-equal", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "node's assert.deepEqual algorithm", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -90,1 +90,7 @@ var test = require('tape'); | ||
}) | ||
test('null == undefined', function (t) { | ||
t.ok(equal(null, undefined)) | ||
t.notOk(equal(null, undefined, { strict: true })) | ||
t.end() | ||
}) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9690
204