JSONPath Tools / @jsonpath-tools/jsonpath / TextRange
Class: TextRange
Represents a contiguous range in a text.
Constructors
new TextRange()
ts
new TextRange(position, length): TextRange
Parameters
position
number
Index of a character where the range starts. Inclusive and starts with 0.
length
number
Length of the range in number of characters.
Returns
TextRange
Properties
length
ts
readonly length: number;
Length of the range in number of characters.
position
ts
readonly position: number;
Index of a character where the range starts. Inclusive and starts with 0.