yatter
Preparing search index...
function
once
Function once
once
<
F
extends
AnyFunction
<
any
>
,
T
extends
undefined
|
boolean
=
true
>
(
fun
:
F
,
option
?:
{
lastResult
?:
T
}
,
)
:
<
C
>
(
this
:
C
,
...
args
:
Parameters
<
F
>
)
=>
FunctionReturn
只能调用一次的函数,
Type Parameters
F
extends
AnyFunction
<
any
>
T
extends
undefined
|
boolean
=
true
Parameters
fun
:
F
option
:
{
lastResult
?:
T
}
= {}
重复调用是否返回第一次调用的结果
Optional
lastResult
?:
T
重复调用是否返回第一次调用的结果 default is true
Returns
<
C
>
(
this
:
C
,
...
args
:
Parameters
<
F
>
)
=>
FunctionReturn
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
yatter
Loading...
只能调用一次的函数,