MCPcopy Create free account
hub / github.com/breck7/scroll / getLines

Function getLines

external/.scrollLibs.js:1006–1012  ·  view source on GitHub ↗
(doc, from, to)

Source from the content-addressed store, hash-verified

1004 }
1005 // Get the lines between from and to, as array of strings.
1006 function getLines(doc, from, to) {
1007 var out = []
1008 doc.iter(from, to, function (line) {
1009 out.push(line.text)
1010 }) // iter aborts when callback returns truthy value
1011 return out
1012 }
1013
1014 // Update the height of a line, propagating the height change
1015 // upwards to parent nodes.

Callers 1

.scrollLibs.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected