kvision / pl.treksoft.kvision.utils / obj

obj

(js) inline fun obj(init: dynamic.() -> Unit): dynamic

Helper function for creating JavaScript objects.

(js) inline fun <T> obj(init: T.() -> Unit): T

Helper function for creating JavaScript objects with given type.