PIbd-22_Kaznacheeva.E.K_Int.../lab2/node_modules/lodash/_baseAssign.js

18 lines
470 B
JavaScript
Raw Permalink Normal View History

2023-11-24 14:53:57 +04:00
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;