javascript reduce mdn
JavaScript Reduce MDN
JavaScript reduce() is a method that allows you to reduce an array to a single value. You can use this method to perform several operations on an array such as summing up all the elements in the array, finding the maximum or minimum value in the array,