Function removeUndefined

  • Parses object, removes keys with undefined value, and returns clean object.

    Parameters

    • obj: {
          [key: string]: any;
      }
      • [key: string]: any

    Returns {
        [key: string]: any;
    }

    • [key: string]: any