Nuacht

An example of Javascript array reduce method in action: The This reduce method does the same job as the following for…each loop, but with fewer lines of code.