JavaScript Element.Children.Foreach nie działa

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