element-array

1.2.2 • Public • Published

element-array

Get an array of DOM elements

Build Status npm

Install

yarn add element-array

Or grab the latest UMD build.

Usage

Pass a selector string, NodeList, HTMLCollection, DOM element, or jQuery object and get an array of DOM elements.

elementArray('.someSelector')
elementArray(document.querySelectorAll('.someSelector'))
elementArray(document.body)
elementArray($('.someSelector'))

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i element-array

Weekly Downloads

2

Version

1.2.2

License

MIT

Last publish

Collaborators

  • camwiegert