You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
468 B

1 month ago
  1. import copyObject from './_copyObject.js';
  2. import keys from './keys.js';
  3. /**
  4. * The base implementation of `_.assign` without support for multiple sources
  5. * or `customizer` functions.
  6. *
  7. * @private
  8. * @param {Object} object The destination object.
  9. * @param {Object} source The source object.
  10. * @returns {Object} Returns `object`.
  11. */
  12. function baseAssign(object, source) {
  13. return object && copyObject(source, keys(source), object);
  14. }
  15. export default baseAssign;