JavaScript Element.Children.Foreach no funciona

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