This project is part of the @thi.ng/umbrella monorepo.
Deep equivalence checking for any data types. Supports:
- JS primitives
- arrays
- plain objects
- ES6 Sets / Maps
- Date
- RegExp
- types with
.equiv()
implementations
This feature was previously part of the @thi.ng/api package.
yarn add @thi.ng/equiv
import { equiv } from "@thi.ng/equiv";
equiv({a: {b: [1, 2]}}, {a: {b: [1, 2]}});
// true
- Karsten Schmidt
© 2018 Karsten Schmidt // Apache Software License 2.0