* get previous sibling node
()
| 699 | * get previous sibling node |
| 700 | */ |
| 701 | get prevSibling(): Node | null | undefined { |
| 702 | if (!this.parent) { |
| 703 | return null |
| 704 | } |
| 705 | const { index } = this |
| 706 | if (typeof index !== 'number') { |
| 707 | return null |
| 708 | } |
| 709 | if (index < 1) { |
| 710 | return null |
| 711 | } |
| 712 | return this.parent.children?.get(index - 1) |
| 713 | } |
| 714 | |
| 715 | mergeChildren( |
| 716 | remover: (node: Node, idx: number) => any, |