UNPKG

lodash-es

Version:

The modern build of lodash exported as ES modules.

20 lines (17 loc) 508 B
import baseCopy from './baseCopy'; import keys from '../object/keys'; /** * The base implementation of `_.assign` without support for argument juggling, * multiple sources, and `customizer` functions. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @returns {Object} Returns `object`. */ function baseAssign(object, source) { return source == null ? object : baseCopy(source, keys(source), object); } export default baseAssign;