TypeScriptTypeScript Error - Type NodeListOf<Element> ; must have a Symbol.iterator() method that returns an iterator