Cheerio objects should be Iterable, so that we can use them in normal loops:
for(el of $('div')) {
...
}
Have you tried using get()聽method? It returns an Array
Actually, the code to make objects iterable is already in the repo. However, there was no new release since then ...
...so in the meanwhile you can use get(). Just kididng 馃槄 You can use it even if it has not been released yet. Just reference the repo and the commit/branch in your package.json 馃槈
Most helpful comment
Actually, the code to make objects iterable is already in the repo. However, there was no new release since then ...