Join Slack
Powered by
There's nothing like this in stdlib, but you can u...
# javascript
k
konsoletyper
04/25/2017, 2:37 PM
There's nothing like this in stdlib, but you can use JS interop:
Copy code
fun <T : Any> JsClass<T>.createInstance(): T { val cls = this return js("new cls()") }
👍 1
7
Views
Open in Slack
Previous
Next