MCPcopy Create free account
hub / github.com/TruthHun/BookStack / indexOf

Function indexOf

static/editor.md/lib/codemirror/lib/codemirror.js:8073–8077  ·  view source on GitHub ↗
(array, elt)

Source from the content-addressed store, hash-verified

8071 selectInput = function(node) { try { node.select(); } catch(_e) {} };
8072
8073 function indexOf(array, elt) {
8074 for (var i = 0; i < array.length; ++i)
8075 if (array[i] == elt) return i;
8076 return -1;
8077 }
8078 function map(array, f) {
8079 var out = [];
8080 for (var i = 0; i < array.length; i++) out[i] = f(array[i], i);

Callers 12

setGuttersForLineNumbersFunction · 0.70
patchDisplayFunction · 0.70
normalizeSelectionFunction · 0.70
regLineChangeFunction · 0.70
makeChangeInnerFunction · 0.70
makeChangeFromHistoryFunction · 0.70
codemirror.jsFile · 0.70
detachSharedMarkersFunction · 0.70
removeReadOnlyRangesFunction · 0.70
lineNoFunction · 0.70
copyHistoryArrayFunction · 0.70
signalCursorActivityFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected