2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-11 18:02:32 +03:00

Moving utility functions into utils

This commit is contained in:
Matt Zabriskie
2014-08-28 12:33:53 -06:00
parent ceca9ced47
commit cec3482ff7
17 changed files with 971 additions and 647 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
'use strict';
var forEach = require('./forEach');
var utils = require('./utils');
/**
* Transform the data for a request or a response
@@ -11,7 +11,7 @@ var forEach = require('./forEach');
* @returns {*} The resulting transformed data
*/
module.exports = function transformData(data, headers, fns) {
forEach(fns, function (fn) {
utils.forEach(fns, function (fn) {
data = fn(data, headers);
});