lysdexic@programming.dev to Programming@programming.devEnglish · 2 months agoCode Smells Catalogluzkan.github.ioexternal-linkmessage-square20fedilinkarrow-up149arrow-down14
arrow-up145arrow-down1external-linkCode Smells Catalogluzkan.github.iolysdexic@programming.dev to Programming@programming.devEnglish · 2 months agomessage-square20fedilink
minus-squaremetiulekm@sh.itjust.workslinkfedilinkEnglisharrow-up4·2 months 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.
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.