MCPcopy Create free account
hub / github.com/easydiffusion/easydiffusion / indexOfFirstToPass

Function indexOfFirstToPass

ui/plugins/ui/jasmine/jasmine.js:3164–3175  ·  view source on GitHub ↗
(array, testFn)

Source from the content-addressed store, hash-verified

3162 }
3163
3164 function indexOfFirstToPass(array, testFn) {
3165 let index = -1
3166
3167 for (let i = 0; i < array.length; ++i) {
3168 if (testFn(array[i])) {
3169 index = i
3170 break
3171 }
3172 }
3173
3174 return index
3175 }
3176
3177 return DelayedFunctionScheduler
3178}

Callers 2

DelayedFunctionSchedulerFunction · 0.85
jasmine.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected