of

fun of(value: Any?): JsValue(source)

A Kotlin scalar as a JavaScript value: see Converters for the table. A collection needs an engine to build its object in, so it goes through KiteJs.valueOf instead.