diff options
Diffstat (limited to 'deps/npm/node_modules/request/node_modules/form-data/lib/populate.js')
-rw-r--r-- | deps/npm/node_modules/request/node_modules/form-data/lib/populate.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/deps/npm/node_modules/request/node_modules/form-data/lib/populate.js b/deps/npm/node_modules/request/node_modules/form-data/lib/populate.js new file mode 100644 index 00000000000..6f64a6d32cf --- /dev/null +++ b/deps/npm/node_modules/request/node_modules/form-data/lib/populate.js @@ -0,0 +1,9 @@ +// populates missing values +module.exports = function(dst, src) { + for (var prop in src) { + if (src.hasOwnProperty(prop) && !dst[prop]) { + dst[prop] = src[prop]; + } + } + return dst; +}; |