This is an incorrect usage of `map` since your objective is just to iterate over each element, not map all the elements into a new array based on some calculation. [This SO post](http://stackoverflow.com/questions/9586989/difference-between-map-and-each) might help.