pacdiv
1 min readSep 2, 2018

--

Hi The Mighty Quinn,

Thanks mate! ^^

First, know that I edited the article since you read it! :)

By « better », I meant a mix between performance and semantic. Not performance to benchmark them all, but simply as a logic way. For instance, Array.find stops when an item matches, Array.filter doesn’t. But, if our array has a length of two, we probably won’t see a big difference between those two methods. In this case, I’ll still recommend Array.find if our intention is to find a specific item because I think it’s semantically better.

--

--

pacdiv

Hi there! I’m a Frontend developer trying to build an audience. More info at http://bit.ly/2Y1ZFDR.