DEV Community

Discussion on: Easily Copy Objects and Arrays from Chrome's Console

Collapse
 
itzk7 profile image
Kesavan Palani

It won't work always. For complex array of objects it will return as [object Object],[object Object],[object Object],[object Object].

Collapse
 
atesdanis profile image
Ateş DANIŞ

so how can we copy it.. is there anybody knows?

Collapse
 
samrocksc profile image
Sam Clark • Edited

You can just create a quick map of the complex object and it will spit them out :O)

Collapse
 
sakthivelar profile image
sakthivel-ar

copy(temp1.toArray())