@blinkk/degu
    Preparing search index...

    Function runOnlyOnce

    • A function that only ever runs once even if it is called multiple times.

      let hello = func.runOnlyOnce(()=> {
      console.log('hello');
      })

      hello() // hello
      hello() // cull
      hello() // cull
      *

      Parameters

      • callback: Function

      Returns Function