copyToClipboard()
The copyToClipboard() function copies the given string to the user's clipboard. This page provides information about the function and its parameters.
Signature
copyToClipboard(data: string, { debug: boolean, format: string }): Promise
Parameters
data
debug
false. When set to true, this option displays the information in the console. The parameter can be helpful for debugging.format
application/json.