Kesalahan typeerror: this.element.children.foreach bukan fungsi

for (let child of element.children) {
  console.log(child);
}
Perfect Peccary