Get siblings nodes

PHOTO EMBED

Mon Sep 12 2022 07:12:14 GMT+0000 (Coordinated Universal Time)

Saved by @camtonguyen #javascript

var siblings = n => [...n.parentElement.children].filter(c=>c!=n)
content_copyCOPY

https://stackoverflow.com/questions/842336/is-there-a-way-to-select-sibling-nodes