dom-array
v0.0.2
Published
Turn any* input into array (of DOM nodes).
Downloads
21
Readme
dom-array
Turn any* input into array (of DOM nodes).
Input formats:
window
document
Element
NodeList
Array
String
undefined
null
Usage
var $ = require('dom-array');
$(); // []
$('title'); // [title]
$('title', document.body); // []
$('<title>'); // [title]
Installation
$ npm install dom-array
Test
$ npm test
Browser support
IE9+