newFunction
abstract fun newFunction(name: String, arity: Int, body: (self: JsValue, args: List<JsValue>) -> Any?): JsFunction(source)
A host function named name. body gets this and the arguments, and its answer goes back through Converters.