Runs a function once
const init = runOnce(() => { // do some initialisation});init(); // Runs onceinit(); // no-op Copy
const init = runOnce(() => { // do some initialisation});init(); // Runs onceinit(); // no-op
Runs a function once