A function that only ever runs once even if it is called multiple times.
let hello = func.runOnlyOnce(()=> { console.log('hello');})hello() // hellohello() // cullhello() // cull* Copy
let hello = func.runOnlyOnce(()=> { console.log('hello');})hello() // hellohello() // cullhello() // cull*
A function that only ever runs once even if it is called multiple times.