getEntries()function
getEntries(...input: (ImmutableSet<K & T> | Partial<ImmutableObject<K, T>> | Iterable<Entry<K, T>>)[]): Iterable<Entry<K, T>>
getEntries(...input: (ImmutableArray<T> | ImmutableSet<K & T> | Iterable<Entry<K, T>>)[]): Iterable<Entry<K, T>>
getEntries(...input: (ImmutableSet<K & T> | Iterable<Entry<K, T>>)[]): Iterable<Entry<K, T>>
| Param | Type | |
|---|---|---|
input | (ImmutableSet<K & T>Partial<ImmutableObject<K, T>>Iterable<Entry<K, T>>)[] | One or more sources that can yield [key, value] entries. required |
input | (ImmutableArray<T>ImmutableSet<K & T>Iterable<Entry<K, T>>)[] | required |
input | (ImmutableSet<K & T>Iterable<Entry<K, T>>)[] | required |
| Return | |
|---|---|
Iterable<Entry<K, T>> | Iterable yielding the combined entries from every input. |
Iterable<Entry<K, T>> |
Yield the entries from one or more entry-yielding sources (sets, objects, maps, arrays, or iterables of entries).
Examples
Array.from(getEntries({ a: 1, b: 2 })) // [["a", 1], ["b", 2]]