Creates a shallow clone of
Note: This method is loosely based on the
structured clone algorithm
and supports cloning arrays, array buffers, booleans, date objects, maps,
Object objects, regexps, sets, strings, symbols, and typed
arrays. The own enumerable properties of
arguments objects are cloned
as plain objects. Object inheritance is preserved. An empty object is
returned for uncloneable values such as error objects, functions, DOM nodes,
The value to clone.
Returns the cloned value.