Skip to main content

All Questions

2 votes
2 answers
2k views

JS - two array filters vs. one forEach?

I've had a question for a while. I know that the Array prototype method filter is generally preferred over forEach, and I believe it is typically faster at the job as well. But what about if I have ...
Michael Jay's user avatar