(value)
| 35 | // @pragma Construction |
| 36 | |
| 37 | constructor(value) { |
| 38 | // eslint-disable-next-line no-constructor-return |
| 39 | return value === undefined || value === null |
| 40 | ? emptyMap() |
| 41 | : isMap(value) && !isOrdered(value) |
| 42 | ? value |
| 43 | : emptyMap().withMutations((map) => { |
| 44 | const iter = KeyedCollection(value); |
| 45 | assertNotInfinite(iter.size); |
| 46 | iter.forEach((v, k) => map.set(k, v)); |
| 47 | }); |
| 48 | } |
| 49 | |
| 50 | toString() { |
| 51 | return this.__toString('Map {', '}'); |
nothing calls this directly
no test coverage detected