squint

borkdude 2025-07-25T19:22:55.381759Z

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

👀 2
➕ 1
Chris McCormick 2025-08-01T07:21:01.586059Z

Wow - will this go into squint core?

borkdude 2025-08-01T07:44:39.001159Z

no, just use the library

👍 1
borkdude 2025-07-25T19:28:15.193419Z

import { isEqual } from 'es-toolkit';

console.log(isEqual({a: 1}, {a: 1}))
This minified is 3k

liebs 2025-07-27T12:42:43.618669Z

I 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.

Chris McCormick 2025-08-05T04:39:32.381899Z

Vaguely relevant: https://v8.dev/blog/json-stringify

👍 1