Lets say I have several objects. These objects have four properties each, containing simple integers. I want to create another object with the highest values for each property, so its a chimeric object. I don't want it to change the originals when I manipulate it and vice versa.
Whats the way to do this in javascript? A simple assignment would create a reference, but I need a duplicate.
PS: Pure JS please, no libraries.