Błąd typeerror: this.element.children.Foreach nie jest funkcją

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