omitNullable()
function omitNullable<T>(input): NonNullableObject<T>
Given an object, returns a new object with all nullable properties removed.
This is useful for cleaning up objects before serializing them to JSON.
Type Parameters
Type Parameter |
---|
T extends object |
Parameters
Parameter | Type |
---|---|
input | T |