Skip to main content
Module

x/windmill_helpers/mod.ts>removeObjectEmptyFields

A repository that contains utils functions used by windmill deno scripts
function removeObjectEmptyFields
import { removeObjectEmptyFields } from "https://deno.land/x/windmill_helpers@v1.1.0/mod.ts";

Returns an object with no empty fields. Works with nested objects as well.

Parameters

optional
object: Record<string, any>

If true then arrays with no items and objects with no keys will be removed as well. Default is true.

optional
removeEmptyArraysAndObjects = [UNSUPPORTED]

If true then a newly created object will be returned, otherwise the object argument will be updated in place. Default is true.

optional
createNewObject = [UNSUPPORTED]