summaryrefslogtreecommitdiffstats
path: root/middleware/node_modules/utils-merge/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/node_modules/utils-merge/index.js')
-rw-r--r--middleware/node_modules/utils-merge/index.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/middleware/node_modules/utils-merge/index.js b/middleware/node_modules/utils-merge/index.js
new file mode 100644
index 0000000..4265c69
--- /dev/null
+++ b/middleware/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;
+};