Recursively copies enumerable properties of an object into a new object. Returns the original value if it is not an object or is nullish.
Optional
The object to copy
A new object with the copied properties
const copy = asObject({ a: 1 }); Copy
const copy = asObject({ a: 1 });
Recursively copies enumerable properties of an object into a new object. Returns the original value if it is not an object or is nullish.