method

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

Exposes a Kotlin function under name.