NewableFunction

@native @JSType trait NewableFunction extends Function
class Function
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

@JSName("apply")
def apply[T](thisArg: T): Unit

Calls the function with the specified object as the this value and the elements of specified array as the arguments.

Calls the function with the specified object as the this value and the elements of specified array as the arguments.

Value Params
args

An array of argument values to be passed to the function.

thisArg

The object to be used as the this object.

@JSName("apply")
def apply[T, A](thisArg: T, args: A): Unit
def bind[T](thisArg: Any): T

For a given function, creates a bound function that has the same body as the original function. The this object of the bound function is associated with the specified object, and has the specified initial parameters.

For a given function, creates a bound function that has the same body as the original function. The this object of the bound function is associated with the specified object, and has the specified initial parameters.

Value Params
args

Arguments to bind to the parameters of the function.

thisArg

The object to be used as the this object.

def bind[AX, R](thisArg: Any, args: AX*): Instantiable1[AX, R]
def bind[A0, A, R](thisArg: Any, arg0: A0): Instantiable1[A, R]
def bind[A0, A1, A, R](thisArg: Any, arg0: A0, arg1: A1): Instantiable1[A, R]
def bind[A0, A1, A2, A, R](thisArg: Any, arg0: A0, arg1: A1, arg2: A2): Instantiable1[A, R]
def bind[A0, A1, A2, A3, A, R](thisArg: Any, arg0: A0, arg1: A1, arg2: A2, arg3: A3): Instantiable1[A, R]
def call[T, A](thisArg: T, args: A): Unit

Calls the function with the specified object as the this value and the specified rest arguments as the arguments.

Calls the function with the specified object as the this value and the specified rest arguments as the arguments.

Value Params
args

Argument values to be passed to the function.

thisArg

The object to be used as the this object.

Inherited methods

def bind(thisArg: Any, argArray: Any*): Dynamic
Inherited from
Function
def call(thisArg: Any, argArray: Any*): Dynamic
Inherited from
Function
def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object