Function useOnce

  • Creates a function that can only be called once.

    Parameters

    • fn: ((...args) => any)

      The function to be called once.

        • (...args): any
        • Parameters

          • Rest ...args: any

          Returns any

    Returns ((this, ...args) => any)

    • A new function that can only be called once.
      • (this, ...args): any
      • Parameters

        • this: any
        • Rest ...args: any

        Returns any

Generated using TypeDoc