I\'m trying to make a simple loop:
const parent = this.el.parentElement console.log(parent.children) parent.children.forEach(child => { console.log(chil
parent.children is a HTMLCollection which is array-like object. First, you have to convert it to a real Array to use Array.prototype methods.
parent.children
HTMLCollection
Array
Array.prototype
const parent = this.el.parentElement console.log(parent.children) [].slice.call(parent.children).forEach(child => { console.log(child) })