MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / intersectsRange

Function intersectsRange

src/cm/colorView.ts:210–213  ·  view source on GitHub ↗
(from: number, to: number, range: DocRange)

Source from the content-addressed store, hash-verified

208}
209
210function intersectsRange(from: number, to: number, range: DocRange): boolean {
211 if (from === to) return from >= range.from && from <= range.to;
212 return from < range.to && to > range.from;
213}
214
215function intersectsRanges(
216 from: number,

Callers 1

intersectsRangesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected