minOrNull

Returns the smallest element or null if there are no elements.

If any of elements is NaN returns NaN.

Since Kotlin

1.4

fun <T : Comparable<T>> Array<out T>.minOrNull(): T?(source)

Returns the smallest element or null if there are no elements.

Since Kotlin

1.4