mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Bump to v4.0.0.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import baseCopy from './baseCopy';
|
||||
import keys from '../object/keys';
|
||||
import copyObject from './copyObject';
|
||||
import keys from '../keys';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.assign` without support for argument juggling,
|
||||
* multiple sources, and `customizer` functions.
|
||||
* The base implementation of `_.assign` without support for multiple sources
|
||||
* or `customizer` functions.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The destination object.
|
||||
@@ -11,9 +11,7 @@ import keys from '../object/keys';
|
||||
* @returns {Object} Returns `object`.
|
||||
*/
|
||||
function baseAssign(object, source) {
|
||||
return source == null
|
||||
? object
|
||||
: baseCopy(source, keys(source), object);
|
||||
return object && copyObject(source, keys(source), object);
|
||||
}
|
||||
|
||||
export default baseAssign;
|
||||
|
||||
Reference in New Issue
Block a user