@wordpress/is-shallow-equal
Advanced tools
Comparing version 1.6.1 to 1.7.0
@@ -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" | ||
} |
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
31132
97