Join Nostr
2025-06-03 16:43:34 UTC

Axel Rauschmayer on Nostr: Operations that return iterators in JavaScript. Did I forget any? It’s neat that we ...

Operations that return iterators in JavaScript. Did I forget any?
https://gist.github.com/rauschma/ac3133b5814a8b3d09e833df062b0d1d

It’s neat that we now can use the Iterator method .toArray() instead of spreading or Array.from():

> ['a', 'b'].keys().toArray()
[ 0, 1 ]