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

Function takeWhileFactory

frontend/public/swagger-ui-bundle.js:3352–3387  ·  view source on GitHub ↗
(s, o, i)

Source from the content-addressed store, hash-verified

3350 )
3351 }
3352 function takeWhileFactory(s, o, i) {
3353 var a = makeSequence(s)
3354 return (
3355 (a.__iterateUncached = function (a, u) {
3356 var _ = this
3357 if (u) return this.cacheResult().__iterate(a, u)
3358 var w = 0
3359 return (
3360 s.__iterate(function (s, u, x) {
3361 return o.call(i, s, u, x) && ++w && a(s, u, _)
3362 }),
3363 w
3364 )
3365 }),
3366 (a.__iteratorUncached = function (a, u) {
3367 var _ = this
3368 if (u) return this.cacheResult().__iterator(a, u)
3369 var w = s.__iterator(V, u),
3370 x = !0
3371 return new Iterator(function () {
3372 if (!x) return iteratorDone()
3373 var s = w.next()
3374 if (s.done) return s
3375 var u = s.value,
3376 C = u[0],
3377 j = u[1]
3378 return o.call(i, j, C, _)
3379 ? a === V
3380 ? s
3381 : iteratorValue(a, C, j, s)
3382 : ((x = !1), iteratorDone())
3383 })
3384 }),
3385 a
3386 )
3387 }
3388 function skipWhileFactory(s, o, i, a) {
3389 var u = makeSequence(s)
3390 return (

Callers 1

Calls 5

makeSequenceFunction · 0.85
iteratorDoneFunction · 0.85
iteratorValueFunction · 0.85
nextMethod · 0.80
aFunction · 0.70

Tested by

no test coverage detected