From closures and promises to types, tooling and Node.js.
2 weeks ago
Stop using JSON.parse(JSON.stringify(obj)) for deep copies. structuredClone(obj) handles Dates, Maps, Sets and circular references, and works in browsers, Node 17+ and Deno. It can't clone functions o