Write deepEqual(a, b) that returns true when two values are deeply equal: same primitives, or same structure for arrays and plain objects (same keys and deeply-equal values). Order of object keys does not matter; array order does.
Signature: deepEqual(a, b) => boolean
You may assume no cyclic references and only JSON-like values (no Map/Set/Date).
Return true fast when a === b (handles primitives + same reference).
If either isn't an object (or is null), they must be strictly equal.
Compare key counts, then recurse on every key.
Test natijalarini ko'rish uchun kodingizni ishga tushiring.