Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Array helper functions in ES6

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

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

colors.forEach(print)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Array #helper #functions
ADD COMMENT
Topic
Name
8+8 =