code: function callOnce(fn) {
    var called = false
  
    return calledOnceShim
  
    //-----------------------------------
    function calledOnceShim() {
      if (called) return
      called = true
  
      fn.apply(this, arguments)
    }
  }
docs: ------------------------------------------------------------------------------