Function bind

  • Bind this-object, and optional prefix arguments to a function. 📘

    Parameters

    • x: Function

      a function

    • ths: any

      this object to bind

    • Rest ...prefix: any[]

      prefix arguments

    Returns Function

    (...args) => this.x(...prefix, ...args)

Generated using TypeDoc