Preparing search index...
The search index is not available
@cc-heart/utils
@cc-heart/utils
defineOnceFn
Function defineOnceFn
define
Once
Fn
<
T
>
(
fn
)
:
(
(
this
,
...
args
)
=>
T
)
Creates a function that can only be called once.
Type Parameters
T
Parameters
fn
:
(
(
...
args
)
=>
T
)
The function to be called once.
(
...
args
)
:
T
Parameters
Rest
...
args
:
any
Returns
T
Returns
(
(
this
,
...
args
)
=>
T
)
A new function that can only be called once.
(
this
,
...
args
)
:
T
Parameters
this
:
any
Rest
...
args
:
any
Returns
T
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
@cc-heart/utils
Loading...
Creates a function that can only be called once.