Editor.everyLine method
Editor › everyLine
Unofficial
Check whether every selected line satisfies a predicate.Signature:
everyLine(predicate: (lineText: string) => boolean, skipEmpty?: boolean): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
| predicate | (lineText: string) => boolean | The check applied to each selected line's text. |
| skipEmpty? | boolean | Whether to skip blank lines when the selection spans more than one line. |
Returns: boolean — true when at least one line was checked and all of them passed, false otherwise.