1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-30 02:19:52 +02:00

update docs on Node.ancestors/levels and Path.ancestors (#4987)

This commit is contained in:
Haakon Borch
2022-05-18 01:23:47 +02:00
committed by GitHub
parent 863357f994
commit f5ccab241c
4 changed files with 7 additions and 7 deletions

View File

@@ -19,7 +19,7 @@ type Path = number[]
Get a list of ancestor paths for a given path.
The paths are sorted from deepest to shallowest ancestor. However, if the `reverse: true` option is passed, they are reversed.
The paths are sorted from shallowest to deepest ancestor. However, if the `reverse: true` option is passed, they are reversed.
#### `Path.common(path: Path, another: Path) => Path`