moll

moll/js-egal

Strict equality test (like ===) for JavaScript that handles both built-in and custom value objects (those with a valueOf function).

JavaScript
5
0
Other

Egal.js provides a strict equality test function (`egal`) for JavaScript that handles both built-in and custom value objects (those with a `valueOf` function), allowing semantic comparison of objects like `Date` and `RegExp` beyond simple reference equality. It also includes a `deepEgal` function for recursive comparison of plain objects and arrays while maintaining type safety and handling circular references. This library is designed for JavaScript developers who need precise, type-safe equality testing beyond the limitations of the standard `===` operator.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of moll/js-egal

Account's avatar
A proper typeof that works with primitives, built-in value objects and those from other execution contexts.
Account's avatar
simple, flexible, fun test framework
Account's avatar
Testing and assertion library with friendly BDD syntax — awesome.must.be.true(). Many expressive matchers and is test runner and framework agnostic. Follows RFC 2119 with its use of MUST. Good and well tested stuff.
Account's avatar
JavaScript test spies, stubs and mocks.

Support the repos that depend on moll/js-egal

Top contributors

moll's profile
moll
48 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet