Function entriesToObject

  • Takes an entries iterable or asynchronous iterable and returns an object.

    Example

    entriesToObject([["key", "value"]]); // { key: "value" }
    entriesToObject([
    ["foo", "bar"],
    ["number", 1]
    ]); // { foo: "bar", number: 1 }

    Returns

    Object constructed from entries.

    Type Parameters

    • Iterable extends AsynchronousIterable<Entry<PropertyKey, unknown>>

    Parameters

    • iterable: Iterable

    Returns ReducerOutput<Iterable, Readonly<Record<EntryKey<AsynchronousIterableItem<Iterable>>, EntryValue<AsynchronousIterableItem<Iterable>>>>>