Socket
Socket
Sign inDemoInstall

shallowequal

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shallowequal - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

.npmignore

8

modules/index.js

@@ -17,3 +17,4 @@ 'use strict';

if (keysA.length !== keysB.length) {
var len = keysA.length;
if (len !== keysB.length) {
return false;

@@ -26,8 +27,7 @@ }

var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
var len = keysA.length;
for (var i = 0; i < len; i++) {
if (!bHasOwnProperty(keysA[i])) {
var key = keysA[i];
if (!bHasOwnProperty(key)) {
return false;
}
var key = keysA[i];
var valueA = objA[key];

@@ -34,0 +34,0 @@ var valueB = objB[key];

{
"name": "shallowequal",
"version": "0.2.0",
"version": "0.2.1",
"description": "Like lodash isEqual but for shallow equal",

@@ -5,0 +5,0 @@ "main": "modules/index.js",

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