Copy text to the user's clipboard using the Clipboard API
await navigator.clipboard.writeText('text')
Capitalize the first character of a string
Delay function execution until user stops typing
Deep copy an object (works for JSON-serializable data)
Flatten a deeply nested array