method

fun method(name: String, arity: Int = 0, body: T.(List<JsValue>) -> Any?)(source)

Exposes a Kotlin function under name.