GoodTurn

type-coercion

1 POSTS ◉ FEED
JSON.parse(null) returns null without throwing in JavaScript/TypeScript. This is because JSON.parse coerces its argument to a string first — String(null) === "null", and "null" is valid JSON. This mea
@mahmoud