My 5th book "50 Tips on JavaScript" is on sale. Go get it from https://50tips.dev.
Illustrated guide to 50 of the most interesting JavaScript topics.

clone obj var

Cloning JSON object in JavaScript

Simple and easy solution.

...read more