Creates a shallow copy of an object, an array or a primitive.
Assumes that there are no proto properties for objects.
Creates a shallow copy of an object, an array or a primitive.
Assumes that there are no proto properties for objects.