MCPcopy
hub / github.com/witheve/Eve / indexOf

Function indexOf

src/codemirror.js:8341–8345  ·  view source on GitHub ↗
(array, elt)

Source from the content-addressed store, hash-verified

8339 selectInput = function(node) { try { node.select(); } catch(_e) {} };
8340
8341 function indexOf(array, elt) {
8342 for (var i = 0; i < array.length; ++i)
8343 if (array[i] == elt) return i;
8344 return -1;
8345 }
8346 function map(array, f) {
8347 var out = [];
8348 for (var i = 0; i < array.length; i++) out[i] = f(array[i], i);

Callers 13

setGuttersForLineNumbersFunction · 0.85
patchDisplayFunction · 0.85
normalizeSelectionFunction · 0.85
regLineChangeFunction · 0.85
loadFileFunction · 0.85
makeChangeInnerFunction · 0.85
makeChangeFromHistoryFunction · 0.85
codemirror.jsFile · 0.85
detachSharedMarkersFunction · 0.85
removeReadOnlyRangesFunction · 0.85
lineNoFunction · 0.85
copyHistoryArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected