Javascript performance test - for vs for each vs (map, reduce, filter, find).
Too Long; Didn't Read
We all know that for loop are faster than for each or <a href="https://hackernoon.com/tagged/javascript" target="_blank">javascript</a> function, since under the hood of javascript functions might be using for loops or something else which I’m not sure. I did a simple test with an array of object and doing some operation via for <a href="https://hackernoon.com/tagged/loop" target="_blank">loop</a>/ foreach / javascript functions and observing the time it take to execute.