copyObject.js 458 B

12345678910111213141516
  1. import copyObjectWith from './copyObjectWith';
  2. /**
  3. * Copies properties of `source` to `object`.
  4. *
  5. * @private
  6. * @param {Object} source The object to copy properties from.
  7. * @param {Array} props The property names to copy.
  8. * @param {Object} [object={}] The object to copy properties to.
  9. * @returns {Object} Returns `object`.
  10. */
  11. function copyObject(source, props, object) {
  12. return copyObjectWith(source, props, object);
  13. }
  14. export default copyObject;