Write deepEqual(a, b) returning true when two values are structurally the same.
Numbers, strings and booleans compare by value. Arrays and plain objects compare element by element and key by key, to any depth.
Watch the classic traps: typeof null is "object", and an array is also an object. An object with extra keys is not equal to one without them.