3 ms·
No it's been there for ages. Finalized as part of ecmascript 5 What you are probably thinking of is the context parameter of the reviver callback. That is rela
by arnorhs 2y ago
No it's been there for ages. Finalized as part of ecmascript 5
What you are probably thinking of is the context parameter of the reviver callback. That is relatively recent and mostly a qol improvement
- whizzter 2y agoSorry yes, i was thinking of the context object with source parameter. The issue it solves is a big one though, since without it the JSON.parse functionality cannot parse numbers that are larger than 64bit float numbers (f.ex. bigints).