1 min readJul 1, 2020
Another thought. A use case for JSON.stringify() is deep object comparison.
```
const a = { a: { b: { c: true } } }
const b = { a: { b: { c: true } } }
const isEqual = JSON.stringify(a) === JSON.stringify(b);
```
Another thought. A use case for JSON.stringify() is deep object comparison.
```
const a = { a: { b: { c: true } } }
const b = { a: { b: { c: true } } }
const isEqual = JSON.stringify(a) === JSON.stringify(b);
```
Software Engineer @nrwl . Co-Founder of GrammarGuru. JavaScript Enthusiast. Married with 2 amazing kids. Powered by Coffee. Opinions my own.