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 developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #array #reduce
ADD COMMENT
Topic
Name
8+4 =