once
once<
A>(f): () =>A
Defined in: Composition/fn.ts:92
Creates a function that executes at most once. Subsequent calls return the cached result from the first execution.
Type Parameters
Section titled “Type Parameters”A
Parameters
Section titled “Parameters”() => A
Returns
Section titled “Returns”():
A
Returns
Section titled “Returns”A