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

Function getItem

static/editor.md/lib/codemirror/addon/hint/sql-hint.js:33–37  ·  view source on GitHub ↗
(list, item)

Source from the content-addressed store, hash-verified

31 }
32
33 function getItem(list, item) {
34 if (!list.slice) return list[item];
35 for (var i = list.length - 1; i >= 0; i--) if (getText(list[i]) == item)
36 return list[i];
37 }
38
39 function shallowClone(object) {
40 var result = {};

Callers 3

nameCompletionFunction · 0.85
findTableByAliasFunction · 0.85
sql-hint.jsFile · 0.85

Calls 1

getTextFunction · 0.70

Tested by

no test coverage detected