Skip to main content

CommonOmit

Callable

  • CommonOmit<KeyType, RecordType>(object: RecordType, keys: Iterable<KeyType>): Omit<RecordType, KeyType>

  • Create a copy of the passed record with all specified keys removed


    Type parameters

    • KeyType: string | number | symbol
    • RecordType: {}

    Parameters

    • object: RecordType

      The to-be copied record

    • keys: Iterable<KeyType>

      The to-be removed keys from the record

    Returns Omit<RecordType, KeyType>