Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface NewableFunction

Hierarchy

  • Function
    • NewableFunction

Index

Properties

Function

arguments

arguments: any

caller

caller: Function

length

length: number

name

name: string

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

prototype

prototype: any

Methods

apply

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

    Type parameters

    • T

    Parameters

    • this: object
    • thisArg: T

      The object to be used as the this object.

    Returns void

  • Type parameters

    • T

    • A: any[]

    Parameters

    • this: object
    • thisArg: T
    • args: A

    Returns void

bind

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

    • A: any[]

    • R

    Parameters

    • this: object
    • thisArg: any

      The object to be used as the this object.

    Returns object

  • Type parameters

    • A0

    • A: any[]

    • R

    Parameters

    • this: object
    • thisArg: any
    • arg0: A0

    Returns object

  • Type parameters

    • A0

    • A1

    • A: any[]

    • R

    Parameters

    • this: object
    • thisArg: any
    • arg0: A0
    • arg1: A1

    Returns object

  • Type parameters

    • A0

    • A1

    • A2

    • A: any[]

    • R

    Parameters

    • this: object
    • thisArg: any
    • arg0: A0
    • arg1: A1
    • arg2: A2

    Returns object

  • Type parameters

    • A0

    • A1

    • A2

    • A3

    • A: any[]

    • R

    Parameters

    • this: object
    • thisArg: any
    • arg0: A0
    • arg1: A1
    • arg2: A2
    • arg3: A3

    Returns object

  • Type parameters

    • AX

    • R

    Parameters

    • this: object
    • thisArg: any
    • Rest ...args: AX[]

    Returns object

call

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

    Type parameters

    • T

    • A: any[]

    Parameters

    • this: object
    • thisArg: T

      The object to be used as the this object.

    • Rest ...args: A

      Argument values to be passed to the function.

    Returns void

toString

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

    Returns string