selectAndAppendResults = async (
  selector,
  body,
  cachedResponse,
  secretRequest,
  results
) => {
  if (!selector.includes(".")) {
    selector = '"' + selector + '"';
  }
  selector = "data." + selector;

  if (body.data["data"] != undefined) {
    selector = "data." + selector;
  }

  const value = await selectData(body, selector);
  return [
    ...results,
    {
      request: secretRequest,
      value,
      cachedResponse,
    },
  ];
}
Uses selectData with the selector to get the value and then appends it to the
results. Returns a new array with all of the results.
@param {string} selector
@param {object} body
@param {object} cachedResponse
@param {TRequest} secretRequest
@param {SecretResponse<TRequest>[]} results
@return {Promise<SecretResponse<TRequest>[]>}