Skip to main content

TextWhizzHelper

Functions​

comparePositions()​

function comparePositions(p0, p1): any;

Compares two positions.

Parameters​

ParameterTypeDescription
p0TextPositionfirst position.
p1TextPositionsecond position.

Returns​

any

true if the positions match, false otherwise.


compareRanges()​

function compareRanges(sel0, sel1): any;

Compares two ranges.

Parameters​

ParameterTypeDescription
sel0TextRangefirst range.
sel1TextRangesecond range.

Returns​

any

true if the ranges match, false otherwise.

Was this page helpful?