Preparing search index...
The search index is not available
Welshman Docs
Welshman Docs
@welshman/lib
always
Function always
Creates a function that always returns the same value
always
<
T
>
(
x
:
T
,
...
args
:
unknown
[]
)
:
()
=>
T
Type Parameters
T
Parameters
x
:
T
Value to return
...
args
:
unknown
[]
Returns
()
=>
T
Function that returns x
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Welshman Docs
Loading...
Creates a function that always returns the same value