Returns the first element of the array for which `fn(item)` is minimized.
If multiple elements have the same minimal weight, the earliest one is returned.
