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