Function restrict

  • Generate restricted-use version of a function. 📘

    Parameters

    • x: Function

      a function

    • start: number

      usable from

    • Optional end: number

      usable till (excluding) [-1 ⇒ end]

    Returns Function

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

Generated using TypeDoc