Use [].reduce instead of [].forEach :D