For my project, I tried to port code from kotlinte...
# javascript
g
For my project, I tried to port code from kotlintest. Is there a way to test the type of an instance which works for both my classes and Primitive types:
Copy code
class A

    fun allTests(){
        println("${1 is Int}") //true
        println("${A() is A}") //true
        println("${A::class.isInstance(A())}") //true
        println("${Int::class.isInstance(1)}") // Uncaught TypeError: Cannot read property '$metadata$' of undefined
    }
k