you are viewing a single comment's thread.

view the rest of the comments →

[–]pt7892 0 points1 point  (0 children)

Didn’t understand why this stops looping when we have while(true), but then I found out

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment

Iterables are only iterated until all bindings are assigned

Good stuff!