Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

array reduce

arr.reduce(callback( accumulator, currentValue[, index[, array]] ) {
  // return result from executing something for accumulator or currentValue
}[, initialValue]);
Source by www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged: #array #reduce
ADD COMMENT
Topic
Name
4+7 =