|
|
|
|
|
by usrusr
908 days ago
|
|
On top of the compatibility issue mentioned in sibling comment, the existing behavior also matches the principle of keeping simple things simple without making complicated things impossible. If you want stringify with a check for unhandled elements, that's easily specified in a replacer (that does not really replace). You might prefer some well established standard implementation over ad hoc roll your own, but that's a discussion about npm culture, not about stringify. |
|