Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-shallow-equal

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-shallow-equal - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

index.js

@@ -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",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc