Test name | Executions per second |
---|---|
Array.from on NodeList | 43519.1 Ops/sec |
Spread on NodeList | 39855.3 Ops/sec |
<ul>
</ul>
var ul = document.querySelector('ul');
for(var i=0;i<100;i++) {
ul.appendChild(document.createElement('li'));
}
var listItems = document.querySelectorAll('li');
var other = Array.from(listItems);
var other = [listItems];