Colum Ferry
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);

```

--

--

Colum Ferry
Colum Ferry

Written by Colum Ferry

Software Engineer @nrwl . Co-Founder of GrammarGuru. JavaScript Enthusiast. Married with 2 amazing kids. Powered by Coffee. Opinions my own.

No responses yet