Array -Helferfunktionen in ES6

var colors = ['red', 'green', 'blue']

function print(val) {
  console.log(val)
}

colors.forEach(print)
Outrageous Ostrich