1 var copyObject = require('./_copyObject'),
2 createAssigner = require('./_createAssigner'),
3 keysIn = require('./keysIn');
6 * This method is like `_.assign` except that it iterates over own and
7 * inherited source properties.
9 * **Note:** This method mutates `object`.
16 * @param {Object} object The destination object.
17 * @param {...Object} [sources] The source objects.
18 * @returns {Object} Returns `object`.
30 * Foo.prototype.b = 2;
31 * Bar.prototype.d = 4;
33 * _.assignIn({ 'a': 0 }, new Foo, new Bar);
34 * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
36 var assignIn = createAssigner(function(object, source) {
37 copyObject(source, keysIn(source), object);
40 module.exports = assignIn;