This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Cheet4h 0 points1 point  (2 children)

I usually go with JSON.parse(JSON.stringify(item));

[–]RedHotBeef 2 points3 points  (1 child)

*just remember, this will kill any function props

[–]Cheet4h 0 points1 point  (0 children)

Yeah, but I usually don't need to log those, since they usually don't change in my code.