Function restrictAfter

  • Restrict a function to be used only after a certain number of calls. 📘

    Parameters

    • x: Function

      a function

    • n: number

      number of calls after which it is usable

    Returns Function

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

Generated using TypeDoc