(value)
| 10 | // @pragma Construction |
| 11 | |
| 12 | constructor(value) { |
| 13 | // eslint-disable-next-line no-constructor-return |
| 14 | return value === undefined || value === null |
| 15 | ? emptyOrderedMap() |
| 16 | : isOrderedMap(value) |
| 17 | ? value |
| 18 | : emptyOrderedMap().withMutations((map) => { |
| 19 | const iter = KeyedCollection(value); |
| 20 | assertNotInfinite(iter.size); |
| 21 | iter.forEach((v, k) => map.set(k, v)); |
| 22 | }); |
| 23 | } |
| 24 | |
| 25 | static of(/*...values*/) { |
| 26 | return this(arguments); |
nothing calls this directly
no test coverage detected