UNPKG

use-mutable-source

Version:

Minimal and elegant way to integrate any library with React

11 lines (10 loc) 472 B
/** * Performs equality by iterating through keys on an object and returning false * when any key has values which are not strictly equal between the arguments. * Return true when the values of all keys are strictly equal. * * @param objA - first object to compare * @param objB - second object to compare * @returns A Boolean indicating whether or not the two objects are the same */ export declare function shallowEqual(objA: any, objB: any): boolean;