OLW: #Copy to #Clipboard #Javascript

In #Firefox #Firebug or the #Chrome dev console, there is a neat shorthand to copy an object to the clipboard and paste it in a neat, structured order. The function is called “copy.” Unfortunately, you can’t use it anywhere outside of this console, but it does make your life a lot easier when trying to copy complex nested data structures between windows.

Using it is as simple as you would imagine: copy(obj) will copy the object obj to your clipboard. Then just ctrl+v to paste it in another window!

“The telephone is a good way to talk to people without having to offer them a drink.” – Fran Lebowitz


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s