Array.reduce() - for reducing an array to a single value - DEV Community

Array.reduce() - for reducing an array to a single value - DEV Community

More to explore