mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 14:37:49 +00:00
17 lines
470 B
JavaScript
17 lines
470 B
JavaScript
var copyObjectWith = require('./_copyObjectWith');
|
|
|
|
/**
|
|
* Copies properties of `source` to `object`.
|
|
*
|
|
* @private
|
|
* @param {Object} source The object to copy properties from.
|
|
* @param {Array} props The property identifiers to copy.
|
|
* @param {Object} [object={}] The object to copy properties to.
|
|
* @returns {Object} Returns `object`.
|
|
*/
|
|
function copyObject(source, props, object) {
|
|
return copyObjectWith(source, props, object);
|
|
}
|
|
|
|
module.exports = copyObject;
|