Skip to content

Convert document.querySelectorAll's NodeList into an array.

Notifications You must be signed in to change notification settings

stefanduberg/queryall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

queryall

Convert document.querySelectorAll's NodeList into an array.

Usage

var queryAll = require('queryall');

// document.querySelectorAll('.foo');
queryAll('.foo').forEach(function (el) {
  console.log(el);
});

// parent.querySelectorAll('.foo');
var parent = document.querySelector('.parent');
queryAll('.foo', parent).forEach(function (el) {
  console.log(el);
});

Install

With npm do

$ npm install queryall

About

Convert document.querySelectorAll's NodeList into an array.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published