Returns a JSON-clean copy of an object by stringifying and re-parsing. This inherently removes unsupported values like functions and undefined.
undefined
The object to clean
A clean, JSON-compatible object
const clean = cleanify({ a: 1, b: undefined }); // { a: 1 } Copy
const clean = cleanify({ a: 1, b: undefined }); // { a: 1 }
Returns a JSON-clean copy of an object by stringifying and re-parsing. This inherently removes unsupported values like functions and
undefined.