1.2.2 • Published 7 years ago
element-array v1.2.2
element-array
Get an array of DOM elements
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'))