Angular Reduce Example In Javascript W3schools