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.1.0 to 0.2.0

4

modules/index.js

@@ -5,3 +5,3 @@ 'use strict';

function shallowEqual(objA, objB, compare, compareContext) {
module.exports = function shallowEqual(objA, objB, compare, compareContext) {
if (objA === objB) {

@@ -42,2 +42,2 @@ return true;

return true;
}
};
{
"name": "shallowequal",
"version": "0.1.0",
"version": "0.2.0",
"description": "Like lodash isEqual but for shallow equal",

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

@@ -30,4 +30,8 @@ # shallowequal

## Credit
Code for `shallowEqual` originated from https://github.com/gaearon/react-pure-render/ and has since been refactored to have the exact same API as `lodash.isEqual`.
## License
MIT
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