JSON.stringify (subset) and deepEqual
Comes up in: Coding
This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.
What it covers
- stringify rules (undefined/functions/symbols omitted in objects,
nullin arrays,toJSON, cycles throw) - deepEqual (NaN, ±0, Dates, arrays vs objects, cycles)
Words you will know
What you will practise
- implement both
Interview questions this answers
- Implement
deepEqual.