Returns a collector that returns the smallest value of all entries in the Iterable based on the comparer function.
Type of items in the source.
A function that defines the sort order of the elements.
Collector that returns the smallest value of all entries in the Iterable based on the comparer function.
const result = minByAsync((a, b) => a - b)([1, 2, 3]);console.log(result); // 1 Copy
const result = minByAsync((a, b) => a - b)([1, 2, 3]);console.log(result); // 1
Returns a collector that returns the smallest value of all entries in the Iterable based on the comparer function.