synapse-react-client
Version:
[](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client) [](https://badge.fury.io/js/synaps
9 lines (8 loc) • 359 B
TypeScript
/**
* Removes fields with value 'undefined' from an object (not recursive).
*
* Use the `inPlace` parameter to modify the object (using `delete`), rather than creating a new object.
*
* See https://stackoverflow.com/questions/25421233
*/
export declare function removeUndefined(obj: Record<string, unknown>, inPlace?: boolean): Record<string, unknown>;