code: function isIn(fullStateName) {
      let current = state
      while (current) {
        if (current.fullName == fullStateName) return true
        current = current.parent
      }
      return false
    }
docs: /*
  Returns whether this state or any of its parents has the given fullName.