@wordpress/is-shallow-equal
Version:
Test for shallow equality between two objects or arrays.
14 lines • 428 B
TypeScript
/**
* Internal dependencies
*/
import type { ComparableObject } from '.';
/**
* Returns true if the two objects are shallow equal, or false otherwise.
*
* @param a First object to compare.
* @param b Second object to compare.
*
* @return Whether the two objects are shallow equal.
*/
export default function isShallowEqualObjects(a: ComparableObject, b: ComparableObject): boolean;
//# sourceMappingURL=objects.d.ts.map