4 ms·
> Comparing objects by value A handy helper I use all the time for this: export const jsonEqual = (a, b) => JSON.stringify(inspect(a)) === JSON.stringify(
by pcmaffey 8y ago
> Comparing objects by value
A handy helper I use all the time for this:
export const jsonEqual = (a, b) =>
JSON.stringify(inspect(a)) === JSON.stringify(inspect(b))