``` public inline fun String.toIntOrNull(): Int? =...
# announcements
s
Copy code
public inline fun String.toIntOrNull(): Int? = try {
    java.lang.Integer.parseInt(this)
} catch(e: NumberFormatException) { null }