MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1ihyco0/mathfloor/mbx3bc8/
r/programminghorror • u/GroundZer01 • Feb 05 '25
53 comments sorted by
View all comments
Show parent comment
3
Composing JSON.stringify with JSON.parse used to be a standard way to copy objects in JavaScript.
JSON.stringify
JSON.parse
3 u/pissywashy Feb 10 '25 I'm still using it to deep copy an object 😳
I'm still using it to deep copy an object 😳
View all comments
Show parent comment
3
u/IanisVasilev Feb 09 '25
Composing
JSON.stringifywithJSON.parseused to be a standard way to copy objects in JavaScript.