MCPcopy
hub / github.com/csev/py4e / indexOf

Function indexOf

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:3220–3225  ·  view source on GitHub ↗
(collection, elt)

Source from the content-addressed store, hash-verified

3218 }
3219
3220 function indexOf(collection, elt) {
3221 if (collection.indexOf) return collection.indexOf(elt);
3222 for (var i = 0, e = collection.length; i < e; ++i)
3223 if (collection[i] == elt) return i;
3224 return -1;
3225 }
3226 function isWordChar(ch) {
3227 return /\w/.test(ch) || ch.toUpperCase() != ch.toLowerCase();
3228 }

Callers 3

onMouseDownFunction · 0.70
codemirrorepl.jsFile · 0.70
lineNoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected