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

Function forceIterator

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

Source from the content-addressed store, hash-verified

3653 return s > o ? 1 : s < o ? -1 : 0
3654 }
3655 function forceIterator(s) {
3656 var o = getIterator(s)
3657 if (!o) {
3658 if (!isArrayLike(s)) throw new TypeError('Expected iterable or array-like: ' + s)
3659 o = getIterator(Iterable(s))
3660 }
3661 return o
3662 }
3663 function Record(s, o) {
3664 var i,
3665 a = function Record(_) {

Callers 1

Calls 3

getIteratorFunction · 0.85
isArrayLikeFunction · 0.85
IterableFunction · 0.85

Tested by

no test coverage detected