is-shallow-equal
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,2 +0,2 @@ | ||
module.exports = function (a, b) { | ||
module.exports = function isShallowEqual (a, b) { | ||
if (a === b) return true | ||
@@ -3,0 +3,0 @@ for (var i in a) if (!(i in b)) return false |
{ | ||
"name": "is-shallow-equal", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Shallowly compares two objects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
10
test.js
@@ -1,3 +0,3 @@ | ||
var assert = require("assert") | ||
var isShallowEqual = require("./") | ||
var assert = require('assert') | ||
var isShallowEqual = require('./') | ||
@@ -9,3 +9,3 @@ // pass | ||
assert(isShallowEqual({ a: 1, b: 2, c: 3 }, { a: 1, b: 2, c: 3 })); | ||
assert(isShallowEqual({ a: 1, b: 2, c: 3 }, { a: 1, b: 2, c: 3 })) | ||
@@ -27,3 +27,3 @@ var o = {} | ||
d: function() { | ||
return 1; | ||
return 1 | ||
} | ||
@@ -35,3 +35,3 @@ }, | ||
d: function() { | ||
return 1; | ||
return 1 | ||
} | ||
@@ -38,0 +38,0 @@ } |
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
2943