The various array methods in JavaScript can be thought of on a scale ofΒ power, or really flexibility. At the top end you've got the for
loop, at the bottom the highly-specific functions .every
and .some
. Jesse makes the argument that you should always choose theΒ least powerful option and I agree. The article is also just a generally excellent overview of array manipulation in JavaScript.
