Open chribjel opened 8 months ago
JSON.stringify has some caveats that is not in the standard Typescript implementation.
JSON.stringify(undefined) returns undefined, not string JSON.stringify(function(){}) returns undefinedas well.
JSON.stringify(undefined)
undefined
string
JSON.stringify(function(){})
This PR fixes that.
Tightly related: #21, #124.
JSON.stringify has some caveats that is not in the standard Typescript implementation.
JSON.stringify(undefined)
returnsundefined
, notstring
JSON.stringify(function(){})
returnsundefined
as well.This PR fixes that.