Infrastructure
Is structuredClone faster than JSON.parse(JSON.stringify())?
No. On a small flat object structuredClone runs at 1.28M ops/sec against JSON's 2.07M, and a five-line hand-written deep copy beats both at 8.71M — 6.8x faster than the native call. Use structuredClone anyway, because the fast one silently turns a Date into an empty object and stack-overflows on a c