function(_:)

JSValue.swift:175

This declaration has been renamed to JSValue.object.

This declaration is deprecated: JSClosure is no longer a subclass of JSFunction. Use .object(closure) instead.

static func function(_ closure: JSClosure) -> JSValue