Skip to content

GoogleNanodegreeScholarship/reduce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REDUCE function

Basic Reduce function

  • our array = [ 1, 2, 3, 4, 5 ]
  • To get total value of the array we use reduce method
  • .reduce() method take a callback function with
    two arguments(reducer(or accumulataor) and current value)
  • array.reduce((acc, currentVal) => acc + cV) = 15

Installation

git clone https://github.com/GoogleNanodegreeScholarship/reduce
cd reduce
npm install

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published