Right-click an object in Chrome's console and select
Store as Global Variable from the context menu. It will return something like
temp1 as the variable name.
Chrome also has a
copy() method, so
copy(temp1) in the console should copy that object to your clipboard.
Note on Recursive Objects: If you're trying to copy a recursive object, you will get
[object Object]. The way out is to
copy(JSON.stringify(temp1)) , the object will be fully copied to your clipboard as a valid JSON, so you'd be able to format it as you wish, using one of many resources.
~ Answered on 2014-08-05 13:54:16