UNPKG

@runicjs/runic-react

Version:

Tools for working with Runic in React

8 lines (7 loc) 260 B
import { shallowEqual } from 'shallow-equal'; const shallowEqualEqualityFn = shallowEqual; export const defaultEqualityFn = (a, b) => { if (typeof a !== 'object' || typeof b !== 'object') return a === b; return shallowEqualEqualityFn(a, b); };