Doc.eachLine method
Doc › eachLine
Unofficial
Iterate over the whole document, calling f for each line.Signature:
eachLine(f: (line: Cm5LineHandle) => void): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| f | (line: Cm5LineHandle) => void | The function to call for each line. |
Returns: void
Unofficial
Iterate over a range of lines.Signature:
eachLine(start: number, end: number, f: (line: Cm5LineHandle) => void): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| start | number | The start line number. |
| end | number | The end line number (exclusive). |
| f | (line: Cm5LineHandle) => void | The function to call for each line. |
Returns: void