javascript element.children.ForEach ne fonctionne pas

const children = Array.from(document.getElementById(...).children);
DCmax1k