(s)
| 2182 | invariant(s !== 1 / 0, 'Cannot perform this action with an infinite size.') |
| 2183 | } |
| 2184 | function Map(s) { |
| 2185 | return null == s |
| 2186 | ? emptyMap() |
| 2187 | : isMap(s) && !isOrdered(s) |
| 2188 | ? s |
| 2189 | : emptyMap().withMutations(function (o) { |
| 2190 | var i = KeyedIterable(s) |
| 2191 | ;(assertNotInfinite(i.size), |
| 2192 | i.forEach(function (s, i) { |
| 2193 | return o.set(i, s) |
| 2194 | })) |
| 2195 | }) |
| 2196 | } |
| 2197 | function isMap(s) { |
| 2198 | return !(!s || !s[Re]) |
| 2199 | } |
no test coverage detected