Skip to content

Welshman Docs / @welshman/lib / once

Function: once() ​

once(f): (...args) => void

Defined in: packages/lib/src/Tools.ts:970

Creates function that only executes once

Parameters ​

f ​

(...args) => void

Function to wrap

Returns ​

Function that executes f only on first call

(...args): void

Parameters ​

args ​

...any

Returns ​

void