Skip to main content

CommonPick

Callable

  • CommonPick<KeyType, RecordType>(object: RecordType, keys: Iterable<KeyType>): Pick<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 Pick<RecordType, KeyType>