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

Function List

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

Source from the content-addressed store, hash-verified

2686 ze = x / 2,
2687 We = x / 4
2688 function List(s) {
2689 var o = emptyList()
2690 if (null == s) return o
2691 if (isList(s)) return s
2692 var i = IndexedIterable(s),
2693 a = i.size
2694 return 0 === a
2695 ? o
2696 : (assertNotInfinite(a),
2697 a > 0 && a < x
2698 ? makeList(0, a, w, null, new VNode(i.toArray()))
2699 : o.withMutations(function (s) {
2700 ;(s.setSize(a),
2701 i.forEach(function (o, i) {
2702 return s.set(i, o)
2703 }))
2704 }))
2705 }
2706 function isList(s) {
2707 return !(!s || !s[He])
2708 }

Callers 1

Calls 8

emptyListFunction · 0.85
isListFunction · 0.85
IndexedIterableFunction · 0.85
assertNotInfiniteFunction · 0.85
makeListFunction · 0.85
toArrayMethod · 0.45
forEachMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected