blob: 6624f900672fc16aa5ea78f5ce20139ff16c5dea [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001var copyObject = require('./_copyObject'),
2 keysIn = require('./keysIn');
3
4/**
5 * The base implementation of `_.assignIn` without support for multiple sources
6 * or `customizer` functions.
7 *
8 * @private
9 * @param {Object} object The destination object.
10 * @param {Object} source The source object.
11 * @returns {Object} Returns `object`.
12 */
13function baseAssignIn(object, source) {
14 return object && copyObject(source, keysIn(source), object);
15}
16
17module.exports = baseAssignIn;