Typescript,’NodeListOf’ is not an array type or a string type August 6, 2023 by Tarik You need to set the target compiler option to es6 or higher for NodeListOf<T> to be iterable.