PSA: JavaScript JSON stringifies Infinity to `null`.
Just a warning. What ostensibly might be considered of type `number` can be serialized to null.
> JSON.stringify([Infinity])
> '[null]'
For that matter, same goes for `NaN` and `Symbol`s.
> JSON.stringify([Infinity])
> '[null]'
For that matter, same goes for `NaN` and `Symbol`s.
No comments yet.