code: function bindToConsole (instance) {
    if (!instance) return
    if (!isBrowser) return
  
    const id = instance.__VUE_DEVTOOLS_UID__
    const index = consoleBoundInstances.indexOf(id)
    if (index > -1) {
      consoleBoundInstances.splice(index, 1)
    } else {
      consoleBoundInstances.pop()
    }
  
    consoleBoundInstances.unshift(id)
    for (var i = 0; i < 5; i++) {
      window['$vm' + i] = instanceMap.get(consoleBoundInstances[i])
    }
    window.$vm = instance
  }
docs: Binds given instance in console as $vm0.
  For compatibility reasons it also binds it as $vm.
  
  @param {Vue} instance