Skip to main content

Function: word()

word(line, col, length?): CodeRange

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

Create a range that spans length characters starting at (line, col). If length is omitted, the range extends to the end of the line.

Example: word(1, 3, 3) // line 1, column 3, spans 3 characters word(1, 3) // line 1, column 3, to end of line

Parameters

line

number

col

number

length?

number

Returns

CodeRange