Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nodelist-foreach-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodelist-foreach-polyfill

Simple polyfill for the NodeList.forEach method.

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

NodeList.forEach polyfill

Provides a polyfill for Nodelist.prototype.forEach() to all Browsers supporting ES5.

Native support

Chrome 51, Firefox 50, Opera 38, Safari 10
Android Browser none, IE Mobile none, IE none
See MDN for more information.

Import

// CommonJS
require('nodelist-foreach-polyfill');

// ES6 Modules import / Typescript import
import 'nodelist-foreach-polyfill';

Usage

// Get Nodelist from DOM via document.querySelectorAll()
var elements = document.querySelectorAll('.foo');

// Loop through nodelist
elements.forEach(function(element, index, nodelist) {
    console.log(this, element, index, nodelist);
});

Keywords

FAQs

Package last updated on 14 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc