'use strict';varutils=require('./../utils');/** * Transform the data for a request or a response * * @param {Object|String} data The data to be transformed * @param {Array} headers The headers for the request or response * @param {Array|Function} fns A single function or Array of functions * @returns {*} The resulting transformed data */module.exports=functiontransformData(data,headers,fns){/*eslint no-param-reassign:0*/utils.forEach(fns,functiontransform(fn){data=fn(data,headers);});returndata;};