Sha256: 7783f87b33cdc656935894d5ea7fa23bc3cc5d81989667ed75aba409d57f00ff

Contents?: true

Size: 610 Bytes

Versions: 41

Compression:

Stored size: 610 Bytes

Contents

var utils = require('../utils');

/**
 * Merge the object `dest` with the given args.
 *
 * @param {Object} dest
 * @param {Object} ...
 * @return {Object} dest
 * @api public
 */

(module.exports = function merge(dest){
  utils.assertPresent(dest, 'dest');
  dest = utils.unwrap(dest).first;
  utils.assertType(dest, 'object', 'dest');

  var last = utils.unwrap(arguments[arguments.length - 1]).first
    , deep = (true === last.val);

  for (var i = 1, len = arguments.length - deep; i < len; ++i) {
    utils.merge(dest.vals, utils.unwrap(arguments[i]).first.vals, deep);
  }
  return dest;
}).raw = true;

Version data entries

41 entries across 22 versions & 3 rubygems

Version Path
epuber-stylus-source-0.56.0 vendor/lib/functions/merge.js
epuber-stylus-source-0.54.8 vendor/lib/functions/merge.js
ela-4.1.6 node_modules/nib/node_modules/stylus/lib/functions/merge.js
ela-4.1.6 node_modules/stylus/lib/functions/merge.js
ela-4.1.5 node_modules/nib/node_modules/stylus/lib/functions/merge.js
ela-4.1.5 node_modules/stylus/lib/functions/merge.js
ela-4.1.4 node_modules/nib/node_modules/stylus/lib/functions/merge.js
ela-4.1.4 node_modules/stylus/lib/functions/merge.js
ela-4.1.3 node_modules/stylus/lib/functions/merge.js
ela-4.1.3 node_modules/nib/node_modules/stylus/lib/functions/merge.js
ela-4.1.2 node_modules/stylus/lib/functions/merge.js
ela-4.1.2 node_modules/nib/node_modules/stylus/lib/functions/merge.js
ela-4.1.1 node_modules/nib/node_modules/stylus/lib/functions/merge.js
ela-4.1.1 node_modules/stylus/lib/functions/merge.js
ela-4.1.0 node_modules/nib/node_modules/stylus/lib/functions/merge.js
ela-4.1.0 node_modules/stylus/lib/functions/merge.js
ela-4.0.0 node_modules/stylus/lib/functions/merge.js
ela-4.0.0 node_modules/nib/node_modules/stylus/lib/functions/merge.js
ela-3.4.3 node_modules/nib/node_modules/stylus/lib/functions/merge.js
ela-3.4.3 node_modules/stylus/lib/functions/merge.js