Sha256: ec62860d6445addffd574f640451ea92e0558b6df793b2e0f1c7175fc2ff6366

Contents?: true

Size: 381 Bytes

Versions: 139

Compression:

Stored size: 381 Bytes

Contents

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

Version data entries

139 entries across 120 versions & 20 rubygems

Version Path
disco_app-0.18.4 test/dummy/node_modules/utils-merge/index.js
disco_app-0.18.1 test/dummy/node_modules/utils-merge/index.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/utils-merge/index.js
disco_app-0.14.0 test/dummy/node_modules/utils-merge/index.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/utils-merge/index.js
sumomo-0.8.12 data/sumomo/api_modules/node_modules/utils-merge/index.js
sumomo-0.8.11 data/sumomo/api_modules/node_modules/utils-merge/index.js
sumomo-0.8.10 data/sumomo/api_modules/node_modules/utils-merge/index.js
tang-0.2.1 spec/tang_app/node_modules/utils-merge/index.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/utils-merge/index.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/utils-merge/index.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/utils-merge/index.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/utils-merge/index.js
tang-0.2.0 spec/tang_app/node_modules/utils-merge/index.js
tang-0.1.0 spec/tang_app/node_modules/utils-merge/index.js
tang-0.0.9 spec/tang_app/node_modules/utils-merge/index.js
sumomo-0.8.9 data/sumomo/api_modules/node_modules/utils-merge/index.js
enju_library-0.3.8 spec/dummy/node_modules/utils-merge/index.js
sumomo-0.8.8 data/sumomo/api_modules/node_modules/utils-merge/index.js
ilog-0.4.1 node_modules/utils-merge/index.js