Skip to main content

CommonEntries

Callable

  • CommonEntries<KT, VT>(record: Partial<Record<KT, VT>>): [KT, VT][]

  • A Object.entries variant annotated to return respect literal key types


    Type parameters

    • KT: string
    • VT

    Parameters

    • record: Partial<Record<KT, VT>>

      A record with string-based keys

    Returns [KT, VT][]

    The key/value pairs in the passed record