Two tricks with the Chrome developer console

Copying to the clipboard with copy Suppose you want to copy the value of a variable to the clipboard. Rather than printing it out and then manually selecting and copying it you can do: 1 2 3 4 5 const a = "Something to copy ..."; copy(a); // Clipboard now has contents "Something to copy ..." You can also copy objects, which will be stringified to JSON:
Read more...