1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-04-21 13:51:59 +02:00

docs: clarify Range.includes method to mean intersects

This commit is contained in:
Sunny Hirai 2021-05-21 16:54:41 -07:00
parent 438722df87
commit b5f3678a05

View File

@ -52,6 +52,8 @@ Check if a `range` is exactly equal to `another`.
Check if a `range` includes a path, a point, or part of another range.
For clarity the definition of `includes` can mean partially includes. Another way to describe this is if one Range intersectns the other Range.
#### `Range.isBackward(range: Range): boolean`
Check if a `range` is backward, meaning that its anchor point appears _after_ its focus point in the document.