All questions

Intermediate · JavaScript · Objects

Deep equality check for API responses

Commonly asked: Commonly asked when discussing custom assertions · ~15 min

Write deepEqual(a, b) returning true when two JSON-like values (objects, arrays, primitives, null) are structurally equal.

Checking your membership…