It reduces the array to a single value by applying a function to each element and accumulating the result.