typeOf Kotlin example
Example: typeof kotlin
val number = 5
if(number is Int) {
println("number is of type Int")
}
println("${number::class.simpleName}") // "Int"
println("${number::class.qualifiedName}") // "kotlin.Int"
val number = 5
if(number is Int) {
println("number is of type Int")
}
println("${number::class.simpleName}") // "Int"
println("${number::class.qualifiedName}") // "kotlin.Int"