Skip to content

ChangeDesc.touchesRange method

ChangeDesc › touchesRange

Official

Check whether these changes touch a given range.

Signature:

touchesRange(from: number, to?: number | undefined): 'cover' | boolean

Parameters:

ParameterTypeDescription
fromnumberStart of the range.
to?number | undefinedEnd of the range.

Returns: 'cover' | booleanWhether the range is touched, or "cover" if entirely covered.