This commit is contained in:
Robert authored and GitHub committed 2025-03-12 04:13:21 +00:00
1 parent 3f2a4ec0d3
commit 65d8c608c5
626 files changed
+66952 -3

No files matched your search

+23
View File
@@ -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;
};