Lodash _.mean() Method
The _.mean() method is used to find the mean of the values in the array.
_.mean( array )
Parameters: This method accepts a single parameter as mentioned above and described below:
- array: It is the array that the method iterates over to get the mean of all the values.
Return Value: This method returns the mean of the values in the array.