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 }

    Type Parameters

    • Iterable extends IsomorphicIterable<Entry>

    Parameters

    • iterable: Iterable

    Returns ReducerOutput<Iterable, ReadOnlyRecord<EntryKey<IsomorphicIterableItem<Iterable>>, EntryValue<IsomorphicIterableItem<Iterable>>>>

    Object constructed from entries.