Files
What_Are_You_Lifting_App/node_modules/utils-merge/index.js
stevenhaskell 82291517d2 Updated Service Worker JS and Added Node Server
Updated the service worker JS. Issue with how I typed the cache links. Forgot to put a "./" before the asset name. Should work now.
2018-11-13 13:12:57 -05:00

24 lines
381 B
JavaScript

/**
* 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;
};