Function removeUndefinedProperties

  • Remove all properties from an object which have a value of undefined

    Type Parameters

    • T extends object

    Parameters

    • obj: T

      Object to remove undefined properties from

    • Optional options: {
          recusive?: boolean;
      }
      • Optional recusive?: boolean

    Returns T

    New object with all properties which had a value of undefined removed