Lodash _.max() Method
The _.max() method is used to find the maximum element from the array. If the array is empty then undefined is returned.
_.max( 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 maximum element.
Return Value: This method returns the maximum element from the array.
My Personal Notes arrow_drop_up
Please Login to comment...