Path
type Path = number[]Static methods
Retrieval methods
Path.ancestors(path: Path, options: { reverse?: boolean } = {}) => Path[]
Path.ancestors(path: Path, options: { reverse?: boolean } = {}) => Path[]Path.common(path: Path, another: Path) => Path
Path.common(path: Path, another: Path) => PathPath.compare(path: Path, another: Path) => -1 | 0 | 1
Path.compare(path: Path, another: Path) => -1 | 0 | 1Path.levels(path: Path, options?) => Path[]
Path.levels(path: Path, options?) => Path[]Path.next(path: Path) => Path
Path.next(path: Path) => PathPath.parent(path: Path) => Path
Path.parent(path: Path) => PathPath.previous(path: Path) => Path
Path.previous(path: Path) => PathPath.relative(path: Path, ancestor: Path) => Path
Path.relative(path: Path, ancestor: Path) => PathCheck methods
Path.endsAfter(path: Path, another: Path) => boolean
Path.endsAfter(path: Path, another: Path) => booleanPath.endsAt(path: Path, another: Path) => boolean
Path.endsAt(path: Path, another: Path) => booleanPath.endsBefore(path: Path, another: Path) => boolean
Path.endsBefore(path: Path, another: Path) => booleanPath.equals(path: Path, another: Path) => boolean
Path.equals(path: Path, another: Path) => booleanPath.hasPrevious(path: Path) => boolean
Path.hasPrevious(path: Path) => booleanPath.isAfter(path: Path, another: Path) => boolean
Path.isAfter(path: Path, another: Path) => booleanPath.isAncestor(path: Path, another: Path) => boolean
Path.isAncestor(path: Path, another: Path) => booleanPath.isBefore(path: Path, another: Path) => boolean
Path.isBefore(path: Path, another: Path) => booleanPath.isChild(path: Path, another: Path) => boolean
Path.isChild(path: Path, another: Path) => booleanPath.isCommon(path: Path, another: Path) => boolean
Path.isCommon(path: Path, another: Path) => booleanPath.isDescendant(path: Path, another: Path) => boolean
Path.isDescendant(path: Path, another: Path) => booleanPath.isParent(path: Path, another: Path) => boolean
Path.isParent(path: Path, another: Path) => booleanPath.isPath(value: any) => value is Path
Path.isPath(value: any) => value is PathPath.isSibling(path: Path, another: Path) => boolean
Path.isSibling(path: Path, another: Path) => booleanPath.operationCanTransformPath(operation: Operation) => operation is InsertNodeOperation | RemoveNodeOperation | MergeNodeOperation | SplitNodeOperation | MoveNodeOperation
Path.operationCanTransformPath(operation: Operation) => operation is InsertNodeOperation | RemoveNodeOperation | MergeNodeOperation | SplitNodeOperation | MoveNodeOperationTransform method
Path.transform(path: Path, operation: Operation, options?) => Path | null
Path.transform(path: Path, operation: Operation, options?) => Path | nullLast updated