Optimizing JavaScript loops

Since the ECMAScript 2015 specification, operations with arrays of elements have been enhanced thanks to new high-level methods such as map, filter, reduce, some, every or forEach among others. With them we gain ...