How lukeed/dequal works
dequal is a small JavaScript library for deep equality checks. A caller supplies two values to either the full or lite implementation and receives a boolean; recursive comparisons handle nested values. The full implementation also searches Set and Map keys by value. README-described type support is preserved here, though only the main comparison paths were sampled.
Main entry points: index.js Full comparator · lite.js Lite comparator
Components 4
Other components
- Library caller
- Full comparator
src/index.js - Lite comparator
src/lite.js - Key search
src/index.js
Connections 8
- Library caller → Full comparator: compares values
- Library caller → Lite comparator: compares values
- Full comparator → Full comparator: recurses
- Lite comparator → Lite comparator: recurses
- Full comparator → Key search: searches keys
- Key search → Full comparator: compares keys
- Full comparator → Library caller: returns boolean
- Lite comparator → Library caller: returns boolean