Your version didn't work. There was a declaration fault alongside with an identifier fault as Array.forEach does not return anything.