Skip to main content

Function: lines()

lines(from, to?): CodeRange

Defined in: components/code/src/code-range.ts:39

Create a range that covers entire lines from from to to (inclusive). If to is omitted, only line from is covered.

Example: lines(1, 3) // lines 1 through 3 lines(2) // line 2 only

Parameters

from

number

to?

number

Returns

CodeRange