The object to clean
A copy of @param obj It can be an array, object, class or primitive type.
Creates a new instance of @param type and copies all values from
with a simple for in loop. Works non-recursively
Finds the enum key for a specfic value in an object, class or Enum
The object to check, e.g. an Enum
A value from within the object
Checks if @param obj is not null and is an object.
Generated using TypeDoc
Deletes all properties/entries within an object or an array which are null, undefined or empty object.
Note that empty arrays are not cleared!
clearNulls([ { foo: 'foo', bar: false, baz: null }, { }, [ ] ]); returns [ { foo: 'foo', bar: false, }, [ ] ]