TIL es-toolkit which has a deep-equals function:
https://squint-cljs.github.io/squint/?src=KG5zIGZvbwogICg6cmVxdWlyZSBbImh0dHBzOi8vZXNtLnNoL2VzLXRvb2xraXQiIDphcyBlXSkpCgooZS9pc0VxdWFsIHs6YSAxfSB7OmEgMX0p
The claim is that this lib has a smaller footprint than most other comparable libs
Wow - will this go into squint core?
no, just use the library
import { isEqual } from 'es-toolkit';
console.log(isEqual({a: 1}, {a: 1}))
This minified is 3kI don't know offhand what its bundle size is like but https://ramdajs.com/ is my favorite JS lib, it has clojure and haskell-like sequence functions but for JS objects, plus all the utility stuff for equality etc.