you are viewing a single comment's thread
view the rest of the comments
[–] 10 points 2 years ago (1 child)

Same in Python, Rust, Haskell and probably many others.

But apparently JS does work that way, that is its filter always iterates over everything and returns a new array and not some iterator object.

  • source
  • parent
  • hideshow 2 child comments