MCPcopy Create free account
hub / github.com/Snapchat/Valdi / removeNulls

Function removeNulls

valdi/vscode_debugger/src/common/objUtils.ts:5–6  ·  view source on GitHub ↗
(obj: { [key: string]: V | null })

Source from the content-addressed store, hash-verified

3 *--------------------------------------------------------*/
4
5export const removeNulls = <V>(obj: { [key: string]: V | null }) =>
6 filterValues(obj, (v): v is V => v !== null);
7
8export const removeUndefined = <V>(obj: { [key: string]: V | undefined }) =>
9 filterValues(obj, (v): v is V => v !== undefined);

Callers 4

launchProgramMethod · 0.90
launchProgramMethod · 0.90
definedMethod · 0.90
findInPathFunction · 0.90

Calls 1

filterValuesFunction · 0.85

Tested by

no test coverage detected