Fix extrema(x; dims)
for inputs with NaN/missing
#43604
Merged
extrema(x; dims)
for inputs with NaN/missing
#43604