Returns an object with all the key/value pairs that are null or undefined are removed.
The object to strip null and undefined from.
The stripped object.
omitEmpty({ a: "", b: "asdas", c: false, d: null, e: undefined, f: 0 });// { a: "", b: "asdas", c: false, f: 0 } Copy
omitEmpty({ a: "", b: "asdas", c: false, d: null, e: undefined, f: 0 });// { a: "", b: "asdas", c: false, f: 0 }
Returns an object with all the key/value pairs that are null or undefined are removed.