Run results for: Object.assign vs spread operator vs structured clone vs for loop copy vs JSON duplicate with fallbacks
This test is only intended to be used to test for getting a new reference to an object, not generating a deep clone of an object. Some of the methods used here generate a deep copy and some a shallow copy, but the intent is only to find the fastest method of getting a shallow copy where the key length is long and there are lots of keys.