whole_func_string: 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
    }
func_code_string: 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
    }
func_documentation_string: /*
  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.