MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / siblings

Method siblings

web/pgadmin/static/js/tree/tree.js:295–302  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

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;

Callers 2

server_group.jsFile · 0.80
browser.jsFile · 0.80

Calls 3

hasParentMethod · 0.95
parentMethod · 0.95
filterMethod · 0.80

Tested by

no test coverage detected