Re:Copying objects in JavaScript
by dzek69 on Tuesday November 13, 2018 @02:31PM
(#18444052)
That way you can get different result, as you could actually have date object and date as string stored somewhere. You will need custom strigify callback to differentiate which should be converted back to date on parse and which should be a string.
Still, this is not pure json this way, it's your own transformations
Still, this is not pure json this way, it's your own transformations