(item)
| 293 | } |
| 294 | |
| 295 | siblings(item) { |
| 296 | if (this.hasParent(item)) { |
| 297 | let _siblings = this.parent(item).children.filter((_item) => _item.path !== item.path); |
| 298 | if (typeof (_siblings) !== 'object') return [_siblings]; |
| 299 | else return _siblings; |
| 300 | } |
| 301 | return []; |
| 302 | } |
| 303 | |
| 304 | hasParent(item) { |
| 305 | return item?.parent; |
no test coverage detected