Left Curve Software Stack
    Preparing search index...

    Function plainObject

    • Given an object, return a new object with only the keys that have non-null and non-undefined values. This function works recursively on nested objects.

      Type Parameters

      • T = object

      Parameters

      • obj: object

        The object to transform.

      • newObj: any = ...

      Returns T

      The transformed object.