Skip to content

MinimalBy

Returns the element(s) minimizing a key function.

$ wo 'MinimalBy[{-1, 2, 3, -2}, Abs]'
{-1}