function filterUndefined<T>(obj): T;Defined in: aa-sdk/core/src/utils/index.ts:99
Filters out properties with undefined or null values from the provided object.
import { filterUndefined } from "@aa-sdk/core";
const result = filterUndefined({
foo: undefined,
bar: null,
baz: "baz",
}); // { baz: "baz" }| Type Parameter |
|---|
|
| Parameter | Type | Description |
|---|---|---|
|
| the object from which to remove properties with undefined or null values |
T
the object with undefined or null properties removed