Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on TinyJS – Shorten JavaScript QuerySelect with $ and $$. Parent comment
Now that NodeList is iterable, I don't even know that converting to an array is that useful anymore.
[...document.querySelector('div')] is pretty easy.
Iterator.from(document.querySelector('div')) too (doesn't work yet in Safari).
There are no comments on this comment yet.
Now that NodeList is iterable, I don't even know that converting to an array is that useful anymore.
[...document.querySelector('div')] is pretty easy.
Iterator.from(document.querySelector('div')) too (doesn't work yet in Safari).