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

Function getTokenIndex

static/editor.md/lib/codemirror/mode/erlang/erlang.js:583–591  ·  view source on GitHub ↗
(objs,propname,propvals)

Source from the content-addressed store, hash-verified

581 }
582
583 function getTokenIndex(objs,propname,propvals) {
584
585 for (var i = objs.length-1; -1 < i ; i--) {
586 if (is_member(objs[i][propname],propvals)) {
587 return i;
588 }
589 }
590 return false;
591 }
592
593 function truthy(x) {
594 return (x !== false) && (x != null);

Callers 3

postcommaTokenFunction · 0.85
defaultTokenFunction · 0.85
getTokenFunction · 0.85

Calls 1

is_memberFunction · 0.85

Tested by

no test coverage detected