MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / inArray

Function inArray

static/js/codemirror/keymap/vim.js:310–317  ·  view source on GitHub ↗
(val, arr)

Source from the content-addressed store, hash-verified

308 return x >= start && x <= end;
309 }
310 function inArray(val, arr) {
311 for (var i = 0; i < arr.length; i++) {
312 if (arr[i] == val) {
313 return true;
314 }
315 }
316 return false;
317 }
318
319 // Global Vim state. Call getVimGlobalState to get and initialize.
320 var vimGlobalState;

Callers 5

VimFunction · 0.85
updateMarkFunction · 0.85
findMatchedSymbolFunction · 0.85
isInRangeFunction · 0.85
bindKeysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected