Type of elements in the iterable
A function that takes an iterable and returns an object with min and max properties, or undefined if the iterable is empty
// Find min and max numbers
const result = extreme((a, b) => a - b)([3, 1, 4, 1, 5, 9, 2, 6])
// Result: { min: 1, max: 9 }
Finds both the minimum and maximum values in an iterable based on a comparison function.