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

@wordpress/is-shallow-equal

Package Overview
Dependencies
Maintainers
12
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/is-shallow-equal - npm Package Compare versions

Comparing version 1.6.1 to 1.7.0

4

arrays.js

@@ -6,4 +6,4 @@ 'use strict';

*
* @param {Array} a First array to compare.
* @param {Array} b Second array to compare.
* @param {any[]} a First array to compare.
* @param {any[]} b Second array to compare.
*

@@ -10,0 +10,0 @@ * @return {boolean} Whether the two arrays are shallow equal.

@@ -12,7 +12,11 @@ 'use strict';

/**
* @typedef {{[key: string]: any}} ComparableObject
*/
/**
* Returns true if the two arrays or objects are shallow equal, or false
* otherwise.
*
* @param {(Array|Object)} a First object or array to compare.
* @param {(Array|Object)} b Second object or array to compare.
* @param {any[]|ComparableObject} a First object or array to compare.
* @param {any[]|ComparableObject} b Second object or array to compare.
*

@@ -19,0 +23,0 @@ * @return {boolean} Whether the two values are shallow equal.

### WordPress - Web publishing software
Copyright 2011-2019 by the contributors
Copyright 2011-2020 by the contributors

@@ -5,0 +5,0 @@ This program is free software; you can redistribute it and/or modify

@@ -8,4 +8,4 @@ 'use strict';

*
* @param {Object} a First object to compare.
* @param {Object} b Second object to compare.
* @param {import('.').ComparableObject} a First object to compare.
* @param {import('.').ComparableObject} b Second object to compare.
*

@@ -12,0 +12,0 @@ * @return {boolean} Whether the two objects are shallow equal.

{
"name": "@wordpress/is-shallow-equal",
"version": "1.6.1",
"version": "1.7.0",
"description": "Test for shallow equality between two objects or arrays.",

@@ -35,3 +35,3 @@ "author": "The WordPress Contributors",

},
"gitHead": "707754784420a7089ae31ec4d6c756ce9af9c782"
"gitHead": "3e867dd7c6560e4b2cb9a59cc02856e055be6142"
}
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