Why can't I use Array.forEach on a collection of Javascript elements? [duplicate]
This question already has an answer here: JavaScript: Loop through all the elements returned from getElementsByTagName 9 answers I'm building an app with Babel/ES6. I want to disable all form elements for a view-only version of it, so I did this: let form = document.getElementById('application-form') let elements = form.elements I expected to be able to do this, instead of using a regular old for loop (which did work): elements.forEach((el) => { el.disabled = true }) but I got TypeError: elements.forEach is not a function The strange thing is if I console.log(elements) in the Chrome dev