Skip to main content

CommonFromEntries

Callable

  • CommonFromEntries<KT, VT>(iterable): Record<KT, VT>

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

    @note

    The returned record is typed as being non-Partial, an assumption that may not hold in practice


    Parameters

    • iterable: Iterable<[key: KT, value: VT], any, any>

      An iterable object that contains key-value entries for properties and methods

    Returns Record<KT, VT>

    A record created from the passed key/value pairs