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 dev.to #
 
PREVIOUS NEXT
Tagged: #array #reduce
ADD COMMENT
Topic
Name
1+2 =