I'm after `{ param1: arg1, param2: arg2, .. }`
# javascript
j
I'm after
{ param1: arg1, param2: arg2, .. }
g
If you use
@JsName("param1")
on the declaration of a member in a class it will do exactly that. Then you can refer to it like this in JS
var param1 = myObject['param1']
j
Hmm I don't quite follow that. If it's a property in a class then how do I initialize it from Kotlin?