code: function getRefValue (ref) {
    const thing = ref ? (ref.value ? ref.value : ref) : null
    if (thing && thing.$ref && typeof thing.$ref === 'string') {
      return thing.$ref
    }
  }
docs: Gets the ref value of a search result from prop-search or ref object
  @param ref The search result object from prop-search
  @returns {*} The value of $ref or undefined if not present in search object
  @private