trait ThisFunction2[-T0, -T1, -T2, +R] extends Function with ThisFunction
- Annotations
- @JSType() @native()
- Alphabetic
- By Inheritance
- ThisFunction2
- ThisFunction
- Function
- Object
- Any
- AnyRef
- Any
- by toFunction3
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract def apply(thisArg: T0, arg1: T1, arg2: T2): R
Concrete Value Members
-
final
def
!=(arg0: scala.Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from ThisFunction2[T0, T1, T2, R] to any2stringadd[ThisFunction2[T0, T1, T2, R]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (ThisFunction2[T0, T1, T2, R], B)
- Implicit
- This member is added by an implicit conversion from ThisFunction2[T0, T1, T2, R] to ArrowAssoc[ThisFunction2[T0, T1, T2, R]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: scala.Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
bind(thisArg: Any, argArray: Any*): Dynamic
The bind() method creates a new function that, when called, has its this keyword set to the provided value, with a given sequence of arguments preceding any provided when the new function is called.
The bind() method creates a new function that, when called, has its this keyword set to the provided value, with a given sequence of arguments preceding any provided when the new function is called.
MDN
- Definition Classes
- Function
-
def
call(thisArg: Any, argArray: Any*): Dynamic
The call() method calls a function with a given this value and arguments provided individually.
The call() method calls a function with a given this value and arguments provided individually.
You can assign a different this object when calling an existing function. this refers to the current object, the calling object. With call, you can write a method once and then inherit it in another object, without having to rewrite the method for the new object.
apply is very similar to call(), except for the type of arguments it supports. You can use an arguments array instead of a named set of parameters. With apply, you can use an array literal, for example,
fun.apply(this, ['eat', 'bananas'])
or an Array object, for example,
fun.apply(this, new Array('eat', 'bananas')).
MDN
Scala.js-specific note: call() can be used instead of the apply() method available in JavaScript. Simply use the :_* notation to expand a Seq as variadic arguments, e.g.,
someFun.call(thisArg, argSeq: _*)
- Definition Classes
- Function
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
curried: (T0) ⇒ (T1) ⇒ (T2) ⇒ R
- Implicit
- This member is added by an implicit conversion from ThisFunction2[T0, T1, T2, R] to (T0, T1, T2) ⇒ R performed by method toFunction3 in scala.scalajs.js.ThisFunction.
- Definition Classes
- Function3
- Annotations
- @unspecialized()
-
def
ensuring(cond: (ThisFunction2[T0, T1, T2, R]) ⇒ Boolean, msg: ⇒ scala.Any): ThisFunction2[T0, T1, T2, R]
- Implicit
- This member is added by an implicit conversion from ThisFunction2[T0, T1, T2, R] to Ensuring[ThisFunction2[T0, T1, T2, R]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (ThisFunction2[T0, T1, T2, R]) ⇒ Boolean): ThisFunction2[T0, T1, T2, R]
- Implicit
- This member is added by an implicit conversion from ThisFunction2[T0, T1, T2, R] to Ensuring[ThisFunction2[T0, T1, T2, R]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ scala.Any): ThisFunction2[T0, T1, T2, R]
- Implicit
- This member is added by an implicit conversion from ThisFunction2[T0, T1, T2, R] to Ensuring[ThisFunction2[T0, T1, T2, R]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): ThisFunction2[T0, T1, T2, R]
- Implicit
- This member is added by an implicit conversion from ThisFunction2[T0, T1, T2, R] to Ensuring[ThisFunction2[T0, T1, T2, R]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: scala.Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ThisFunction2[T0, T1, T2, R] to StringFormat[ThisFunction2[T0, T1, T2, R]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hasOwnProperty(v: String): Boolean
Tests whether this object has the specified property as a direct property.
Tests whether this object has the specified property as a direct property.
Unlike js.Object.hasProperty, this method does not check down the object's prototype chain.
MDN
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
Tests whether this object is in the prototype chain of another object.
Tests whether this object is in the prototype chain of another object.
- Definition Classes
- Object
-
val
length: Int
length is a property of a function object, and indicates how many arguments the function expects, i.e.
length is a property of a function object, and indicates how many arguments the function expects, i.e. the number of formal parameters. This number does not include the rest parameter. By contrast, arguments.length is local to a function and provides the number of arguments actually passed to the function.
MDN
- Definition Classes
- Function
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
propertyIsEnumerable(v: String): Boolean
Tests whether the specified property in an object can be enumerated by a call to js.Object.properties, with the exception of properties inherited through the prototype chain.
Tests whether the specified property in an object can be enumerated by a call to js.Object.properties, with the exception of properties inherited through the prototype chain.
If the object does not have the specified property, this method returns false.
MDN
- Definition Classes
- Object
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
tupled: ((T0, T1, T2)) ⇒ R
- Implicit
- This member is added by an implicit conversion from ThisFunction2[T0, T1, T2, R] to (T0, T1, T2) ⇒ R performed by method toFunction3 in scala.scalajs.js.ThisFunction.
- Definition Classes
- Function3
- Annotations
- @unspecialized()
-
def
valueOf(): scala.Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
→[B](y: B): (ThisFunction2[T0, T1, T2, R], B)
- Implicit
- This member is added by an implicit conversion from ThisFunction2[T0, T1, T2, R] to ArrowAssoc[ThisFunction2[T0, T1, T2, R]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
Shadowed Implicit Value Members
-
def
apply(v1: T0, v2: T1, v3: T2): R
- Implicit
- This member is added by an implicit conversion from ThisFunction2[T0, T1, T2, R] to (T0, T1, T2) ⇒ R performed by method toFunction3 in scala.scalajs.js.ThisFunction.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(thisFunction2: (T0, T1, T2) ⇒ R).apply(v1, v2, v3)
- Definition Classes
- Function3
-
def
toString(): String
- Implicit
- This member is added by an implicit conversion from ThisFunction2[T0, T1, T2, R] to (T0, T1, T2) ⇒ R performed by method toFunction3 in scala.scalajs.js.ThisFunction.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(thisFunction2: (T0, T1, T2) ⇒ R).toString()
- Definition Classes
- Function3 → AnyRef → Any