UNPKG

rsuite

Version:

A suite of react components

18 lines (17 loc) 623 B
/** * From: https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/core/shallowEqual.js * @providesModule shallowEqual * @typechecks * @flow */ /** * 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. * Returns true when the values of all keys are strictly equal. */ export declare function shallowEqual(objA: any, objB: any): boolean; /** * Performs a shallow equality check between two arrays. */ export declare function shallowEqualArray(a: any[], b: any[]): boolean; export default shallowEqual;