2 * Copies properties of `source` to `object`.
5 * @param {Object} source The object to copy properties from.
6 * @param {Array} props The property names to copy.
7 * @param {Object} [object={}] The object to copy properties to.
8 * @returns {Object} Returns `object`.
10 function baseCopy(source, props, object) {
11 object || (object = {});
14 length = props.length;
16 while (++index < length) {
17 var key = props[index];
18 object[key] = source[key];
23 module.exports = baseCopy;