12ad6c64bd86b71a2259cad81d50cc80c3ac35a6
[yaffs-website] / copyObject.js
1 var copyObjectWith = require('./copyObjectWith');
2
3 /**
4  * Copies properties of `source` to `object`.
5  *
6  * @private
7  * @param {Object} source The object to copy properties from.
8  * @param {Array} props The property names to copy.
9  * @param {Object} [object={}] The object to copy properties to.
10  * @returns {Object} Returns `object`.
11  */
12 function copyObject(source, props, object) {
13   return copyObjectWith(source, props, object);
14 }
15
16 module.exports = copyObject;