blob: e5c4a1a5b051593e80cf8988d53872b28063305d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
var copyObject = require('./_copyObject'),
keys = require('./keys');
/**
* The base implementation of `_.assign` without support for multiple sources
* or `customizer` functions.
*
* @private
* @param {Object} object The destination object.
* @param {Object} source The source object.
* @returns {Object} Returns `object`.
*/
function baseAssign(object, source) {
return object && copyObject(source, keys(source), object);
}
module.exports = baseAssign;
|