Function restrict

  • Generate restricted-use version of a function.

    Parameters

    • x: Function

      a function

    • start: number

      usable from

    • end: number = -1

      usable till (excluding) [-1 ⇒ end]

    Returns Function

    (...args) => x(...args) from [start:end] calls

Generated using TypeDoc