@alextheman/utility - v5.10.1
    Preparing search index...

    Function removeUndefinedFromObject

    • Removes entries whose values are undefined from a given object (not including null etc.).

      Type Parameters

      • RecordType extends Record<PropertyKey, unknown>

      Parameters

      • object: RecordType

        The object to remove undefined entries from.

      Returns RemoveUndefined<RecordType>

      An object with a new reference in memory, with undefined entries removed.