kotlin.text.minWith

minWith

fun CharSequence.minWith(
    comparator: Comparator<in Char>
): Char?

Platform and version requirements: JVM

fun CharSequence.minWith(
    comparator: Comparator<in Char>
): Char?

Platform and version requirements: JS

Returns the first character having the smallest value according to the provided comparator or null if there are no characters.