@launchdarkly/js-server-sdk-common - v2.26.1
    Preparing search index...

    Variable deepCompactConst

    deepCompact: <T extends object>(obj?: T, ignoreKeys?: string[]) => T | undefined

    Strips all falsy and empty {} from a given object. Returns a new object with only truthy values. Sourced from below but modified to include checks for empty object and ignoring keys. https://www.w3resource.com/javascript-exercises/javascript-array-exercise-47.php

    Type Declaration

      • <T extends object>(obj?: T, ignoreKeys?: string[]): T | undefined
      • Type Parameters

        • T extends object

        Parameters

        • Optionalobj: T
        • OptionalignoreKeys: string[]

        Returns T | undefined