minus-squaremetiulekm@sh.itjust.workstoProgramming@programming.dev•Code Smells CataloglinkfedilinkEnglisharrow-up10·14 days agoSame 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. linkfedilink
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.