Skip to main content
Module

x/scaffold/src/utils.ts>removeUndefined

scaffold your next project with style and 💗
Latest
function removeUndefined
import { removeUndefined } from "https://deno.land/x/scaffold@0.3.0/src/utils.ts";

Removes all undefined values from an object. Neither Firestore nor the RealtimeDB allow undefined as a value.

Type Parameters

Shape extends object

Parameters

data: Shape

The object to clean

optional
nullish = [UNSUPPORTED]

Set to true to clean null and undefined values