bianco.dom-to-array
Usage
import domToArray from 'bianco.dom-to-array'
var div = document.createElement('div')
div.innerHTML = `
<ul>
<li>one</li>
<li>two</li>
</ul>
`
body.appendChild(div)
const lis = document.querySelectorAll('li')
const $lis = domToArray(lis)
$lis.length
Array.isArray($lis)
const li = document.querySelector('li')
const $li = domToArray(li)
$li.length
Array.isArray($li)
API
Table of Contents
domToArray
Converts any DOM node/s to a loopable array
Parameters
Returns Array always a loopable object