mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 14:37:49 +00:00
18 lines
496 B
JavaScript
18 lines
496 B
JavaScript
define(['./_copyObjectWith'], function(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);
|
|
}
|
|
|
|
return copyObject;
|
|
});
|