MCPcopy Index your code
hub / github.com/dataease/SQLBot / Map

Function Map

frontend/public/swagger-ui-bundle.js:2184–2196  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

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 }

Callers 4

countByFactoryFunction · 0.85
groupByFactoryFunction · 0.85
aFunction · 0.85

Calls 7

emptyMapFunction · 0.85
isMapFunction · 0.85
isOrderedFunction · 0.85
KeyedIterableFunction · 0.85
assertNotInfiniteFunction · 0.85
forEachMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected