Skip to main content

CommonOmit

Callable

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

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


    Parameters

    • object: RecordType

      The to-be copied record

    • keys: Iterable<KeyType, any, any>

      The to-be removed keys from the record

    Returns Omit<RecordType, KeyType>