UNPKG

@equinor/fusion-react-utils

Version:
6 lines 293 B
/** * Shallow compare of two objects * @returns boolean - true if objects are the same false if difference */ export const shallowEqual = (a, b) => Object.keys(a).length === Object.keys(b).length && Object.keys(a).every((key) => a[key] === b[key]); //# sourceMappingURL=shallow-equal.js.map