Package Exports
- nodelist-foreach-polyfill
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nodelist-foreach-polyfill) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
NodeList.forEach polyfill
Simple polyfill for the NodeList.forEach
method.
It means you can use forEach
on document.querySelectorAll
and other similar functions that return NodeList
.
Native support
Chrome 51, Firefox 50, Opera 38, Safari 10
Android Browser none, IE Mobile none, IE none
See MDN
Usage
Import before any usages of document.querySelectorAll("#foo").forEach((elem) => { ... })
etc