Function
fromIterable
(entries: Iterable<readonly [K, V]>)
Source from the content-addressed store, hash-verified
| 128 | * @category constructors |
| 129 | */ |
| 130 | export const fromIterable = <K, V>(entries: Iterable<readonly [K, V]>): MutableHashMap<K, V> => { |
| 131 | const self = empty<K, V>() |
| 132 | for (const [key, value] of entries) { |
| 133 | set(self, key, value) |
| 134 | } |
| 135 | return self |
| 136 | } |
| 137 | |
| 138 | /** |
| 139 | * @since 2.0.0 |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…