Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy-Diagram

UML class diagram of CallableFunction

Legend

icon for an interface in the UML class diagram interface
icon for a public property in the UML class diagram public property
icon for a public method in the UML class diagram public method

Hierarchy

Index

Properties

arguments: any
caller: Function
length: number
name: string

Returns the name of the function. Function names are read-only and can not be changed.

prototype: any

Methods

  • [hasInstance](value: any): boolean
  • Determines whether the given value inherits from this function if this function was used as a constructor function.

    A constructor function can control which objects are recognized as its instances by 'instanceof' by overriding this method.

    Parameters

    • value: any

    Returns boolean

  • apply<T, R>(this: (this: T) => R, thisArg: T): R
  • apply<T, A, R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R
  • Calls the function with the specified object as the this value and the elements of specified array as the arguments.

    Type parameters

    • T

    • R

    Parameters

    • this: (this: T) => R
        • (this: T): R
        • Parameters

          • this: T

          Returns R

    • thisArg: T

      The object to be used as the this object.

    Returns R

  • Type parameters

    • T

    • A: any[]

    • R

    Parameters

    • this: (this: T, ...args: A) => R
        • (this: T, ...args: A): R
        • Parameters

          • this: T
          • Rest ...args: A

          Returns R

    • thisArg: T
    • args: A

    Returns R

  • bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>
  • bind<T, A0, A, R>(this: (this: T, arg0: A0, ...args: A) => R, thisArg: T, arg0: A0): (...args: A) => R
  • bind<T, A0, A1, A, R>(this: (this: T, arg0: A0, arg1: A1, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1): (...args: A) => R
  • bind<T, A0, A1, A2, A, R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2): (...args: A) => R
  • bind<T, A0, A1, A2, A3, A, R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3): (...args: A) => R
  • bind<T, AX, R>(this: (this: T, ...args: AX[]) => R, thisArg: T, ...args: AX[]): (...args: AX[]) => R
  • 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.

    Type parameters

    • T

    Parameters

    Returns OmitThisParameter<T>

  • Type parameters

    • T

    • A0

    • A: any[]

    • R

    Parameters

    • this: (this: T, arg0: A0, ...args: A) => R
        • (this: T, arg0: A0, ...args: A): R
        • Parameters

          • this: T
          • arg0: A0
          • Rest ...args: A

          Returns R

    • thisArg: T
    • arg0: A0

    Returns (...args: A) => R

      • (...args: A): R
      • Parameters

        • Rest ...args: A

        Returns R

  • Type parameters

    • T

    • A0

    • A1

    • A: any[]

    • R

    Parameters

    • this: (this: T, arg0: A0, arg1: A1, ...args: A) => R
        • (this: T, arg0: A0, arg1: A1, ...args: A): R
        • Parameters

          • this: T
          • arg0: A0
          • arg1: A1
          • Rest ...args: A

          Returns R

    • thisArg: T
    • arg0: A0
    • arg1: A1

    Returns (...args: A) => R

      • (...args: A): R
      • Parameters

        • Rest ...args: A

        Returns R

  • Type parameters

    • T

    • A0

    • A1

    • A2

    • A: any[]

    • R

    Parameters

    • this: (this: T, arg0: A0, arg1: A1, arg2: A2, ...args: A) => R
        • (this: T, arg0: A0, arg1: A1, arg2: A2, ...args: A): R
        • Parameters

          • this: T
          • arg0: A0
          • arg1: A1
          • arg2: A2
          • Rest ...args: A

          Returns R

    • thisArg: T
    • arg0: A0
    • arg1: A1
    • arg2: A2

    Returns (...args: A) => R

      • (...args: A): R
      • Parameters

        • Rest ...args: A

        Returns R

  • Type parameters

    • T

    • A0

    • A1

    • A2

    • A3

    • A: any[]

    • R

    Parameters

    • this: (this: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R
        • (this: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A): R
        • Parameters

          • this: T
          • arg0: A0
          • arg1: A1
          • arg2: A2
          • arg3: A3
          • Rest ...args: A

          Returns R

    • thisArg: T
    • arg0: A0
    • arg1: A1
    • arg2: A2
    • arg3: A3

    Returns (...args: A) => R

      • (...args: A): R
      • Parameters

        • Rest ...args: A

        Returns R

  • Type parameters

    • T

    • AX

    • R

    Parameters

    • this: (this: T, ...args: AX[]) => R
        • (this: T, ...args: AX[]): R
        • Parameters

          • this: T
          • Rest ...args: AX[]

          Returns R

    • thisArg: T
    • Rest ...args: AX[]

    Returns (...args: AX[]) => R

      • (...args: AX[]): R
      • Parameters

        • Rest ...args: AX[]

        Returns R

  • call<T, A, R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R
  • Calls the function with the specified object as the this value and the specified rest arguments as the arguments.

    Type parameters

    • T

    • A: any[]

    • R

    Parameters

    • this: (this: T, ...args: A) => R
        • (this: T, ...args: A): R
        • Parameters

          • this: T
          • Rest ...args: A

          Returns R

    • thisArg: T

      The object to be used as the this object.

    • Rest ...args: A

      Argument values to be passed to the function.

    Returns R

  • toString(): string
  • Returns a string representation of a function.

    Returns string

Generated using TypeDoc