Function: defineOnceFn()
defineOnceFn<
T>(fn): (this, ...args) =>T
Creates a function that can only be called once.
Type Parameters
T
T
Parameters
fn
(...args) => T
The function to be called once.
Returns
- A new function that can only be called once.
(this, ...args) => T
