Enumerable.minBy Method

Returns the first element which contains the minimum value in a sequence of (possibly null) values.
 
 
Static This method is static.

Parameters

source

Type: IEnumerable
A sequence of (possibly null) values to determine the minimum of.
selector

Type: Function
A transform function to apply to each element.

Return Value


Type: Object - May be null
The first element that contains the minimum value in the sequence.