MCPcopy Create free account
hub / github.com/developit/undom / nextSibling

Method nextSibling

src/undom.js:38–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 this.childNodes = [];
37 }
38 get nextSibling() {
39 let p = this.parentNode;
40 if (p) return p.childNodes[findWhere(p.childNodes, this, true) + 1];
41 }
42 get previousSibling() {
43 let p = this.parentNode;
44 if (p) return p.childNodes[findWhere(p.childNodes, this, true) - 1];

Callers

nothing calls this directly

Calls 1

findWhereFunction · 0.90

Tested by

no test coverage detected