https://github.com/imelgrat/array-reduce-example
Array.reduce() example
https://github.com/imelgrat/array-reduce-example
array-manipulations array-methods arrays javascript reduce reducer
Last synced: 3 months ago
JSON representation
Array.reduce() example
- Host: GitHub
- URL: https://github.com/imelgrat/array-reduce-example
- Owner: imelgrat
- Created: 2020-03-31T22:14:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-07T01:25:21.000Z (over 5 years ago)
- Last Synced: 2025-03-14T03:45:05.970Z (10 months ago)
- Topics: array-manipulations, array-methods, arrays, javascript, reduce, reducer
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Array.reduce() example
Unlike most Array iteration methods, which return an array of values, the **.reduce()** method will reduce an array to a single value. In this example, the method will return the longest item in the array.
Read more at: https://imelgrat.me/javascript/array-object-iteration-javascript/