Removes any null values from an object in-place
Object reference that will be cleaned
Ignore null values
Cleaned object
let test = {a: 0, b: false, c: null, d: 'abc'}console.log(clean(test)); // Output: {a: 0, b: false, d: 'abc'} Copy
let test = {a: 0, b: false, c: null, d: 'abc'}console.log(clean(test)); // Output: {a: 0, b: false, d: 'abc'}
Removes any null values from an object in-place