MCPcopy Create free account
hub / github.com/docker/getting-started / findIndexOf

Function findIndexOf

app/src/static/js/react-bootstrap.js:2816–2825  ·  view source on GitHub ↗
(arr, cb)

Source from the content-addressed store, hash-verified

2814}
2815
2816function findIndexOf(arr, cb) {
2817 var idx = -1;
2818 arr.some(function (d, i) {
2819 if (cb(d, i)) {
2820 idx = i;
2821 return true;
2822 }
2823 });
2824 return idx;
2825}
2826/**
2827 * Proper state managment for containers and the modals in those containers.
2828 *

Callers 1

react-bootstrap.jsFile · 0.85

Calls 1

cbFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…