code: function findState(by) {
      const filterFn = (typeof by === 'object')
        ? state => by === state.options
        : state => by === state.fullName
  
      const state = allStates().filter(filterFn)[0]
      return state && state.asPublic
    }
docs: /*
  Returns the state object that was built with the given options object or that has the given fullName.
  Returns undefined if the state doesn't exist.