UNPKG

synapse-react-client

Version:

[![Build Status](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client.svg?branch=main)](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client) [![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synaps

9 lines (8 loc) 359 B
/** * 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>;