MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / indexOf

Function indexOf

lib/web/CodeMirror/src/util/misc.js:57–61  ·  view source on GitHub ↗
(array, elt)

Source from the content-addressed store, hash-verified

55}
56
57export function indexOf(array, elt) {
58 for (let i = 0; i < array.length; ++i)
59 if (array[i] == elt) return i
60 return -1
61}
62
63// Number of pixels added to scroller and sizer to hide scrollbar
64export let scrollerGap = 50

Callers 15

patchDisplayFunction · 0.90
regLineChangeFunction · 0.90
copyHistoryArrayFunction · 0.90
maybeSpillFunction · 0.90
attachLineMethod · 0.90
detachLineMethod · 0.90
detachSharedMarkersFunction · 0.90
makeChangeInnerFunction · 0.90
makeChangeFromHistoryFunction · 0.90
normalizeSelectionFunction · 0.90
offFunction · 0.90
signalCursorActivityFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected