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

Function clipPosArray

static/mergely/lib/codemirror.js:2101–2104  ·  view source on GitHub ↗
(doc, array)

Source from the content-addressed store, hash-verified

2099 }
2100 function isLine(doc, l) {return l >= doc.first && l < doc.first + doc.size;}
2101 function clipPosArray(doc, array) {
2102 for (var out = [], i = 0; i < array.length; i++) out[i] = clipPos(doc, array[i]);
2103 return out;
2104 }
2105
2106 // SELECTION UPDATES
2107

Callers 1

codemirror.jsFile · 0.70

Calls 1

clipPosFunction · 0.70

Tested by

no test coverage detected