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.

27 lines
927 B

4 years ago
  1. /**
  2. * lodash 3.2.0 (Custom Build) <https://lodash.com/>
  3. * Build: `lodash modern modularize exports="npm" -o ./`
  4. * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
  5. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  6. * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  7. * Available under MIT license <https://lodash.com/license>
  8. */
  9. var baseCopy = require('lodash._basecopy'),
  10. keys = require('lodash.keys');
  11. /**
  12. * The base implementation of `_.assign` without support for argument juggling,
  13. * multiple sources, and `customizer` functions.
  14. *
  15. * @private
  16. * @param {Object} object The destination object.
  17. * @param {Object} source The source object.
  18. * @returns {Object} Returns `object`.
  19. */
  20. function baseAssign(object, source) {
  21. return source == null
  22. ? object
  23. : baseCopy(source, keys(source), object);
  24. }
  25. module.exports = baseAssign;