diff options
Diffstat (limited to 'dgbuilder/dgeflows/node_modules/serve-static/node_modules/utils-merge/index.js')
-rw-r--r-- | dgbuilder/dgeflows/node_modules/serve-static/node_modules/utils-merge/index.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dgbuilder/dgeflows/node_modules/serve-static/node_modules/utils-merge/index.js b/dgbuilder/dgeflows/node_modules/serve-static/node_modules/utils-merge/index.js new file mode 100644 index 00000000..4265c694 --- /dev/null +++ b/dgbuilder/dgeflows/node_modules/serve-static/node_modules/utils-merge/index.js @@ -0,0 +1,23 @@ +/** + * Merge object b with object a. + * + * var a = { foo: 'bar' } + * , b = { bar: 'baz' }; + * + * merge(a, b); + * // => { foo: 'bar', bar: 'baz' } + * + * @param {Object} a + * @param {Object} b + * @return {Object} + * @api public + */ + +exports = module.exports = function(a, b){ + if (a && b) { + for (var key in b) { + a[key] = b[key]; + } + } + return a; +}; |