function deepClone(obj) { return JSON.parse(JSON.stringify(obj)); } const copy = deepClone({ when: new Date(), fn: () => 1, big: 10n });