Deep copy an object (works for JSON-serializable data)
const clone = structuredClone(obj) // or JSON.parse(JSON.stringify(obj))
Capitalize the first character of a string
Copy text to the user's clipboard using the Clipboard API
Delay function execution until user stops typing
Flatten a deeply nested array