|
4174 | 4174 | * @param {Object} source The object to copy properties from.
|
4175 | 4175 | * @param {Array} props The property identifiers to copy.
|
4176 | 4176 | * @param {Object} [object={}] The object to copy properties to.
|
4177 |
| - * @returns {Object} Returns `object`. |
4178 |
| - */ |
4179 |
| - function copyObject(source, props, object) { |
4180 |
| - return copyObjectWith(source, props, object); |
4181 |
| - } |
4182 |
| - |
4183 |
| - /** |
4184 |
| - * This function is like `copyObject` except that it accepts a function to |
4185 |
| - * customize copied values. |
4186 |
| - * |
4187 |
| - * @private |
4188 |
| - * @param {Object} source The object to copy properties from. |
4189 |
| - * @param {Array} props The property identifiers to copy. |
4190 |
| - * @param {Object} [object={}] The object to copy properties to. |
4191 | 4177 | * @param {Function} [customizer] The function to customize copied values.
|
4192 | 4178 | * @returns {Object} Returns `object`.
|
4193 | 4179 | */
|
4194 |
| - function copyObjectWith(source, props, object, customizer) { |
| 4180 | + function copyObject(source, props, object, customizer) { |
4195 | 4181 | object || (object = {});
|
4196 | 4182 |
|
4197 | 4183 | var index = -1,
|
|
11669 | 11655 | * // => { 'a': 1, 'b': 2 }
|
11670 | 11656 | */
|
11671 | 11657 | var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
|
11672 |
| - copyObjectWith(source, keysIn(source), object, customizer); |
| 11658 | + copyObject(source, keysIn(source), object, customizer); |
11673 | 11659 | });
|
11674 | 11660 |
|
11675 | 11661 | /**
|
|
11700 | 11686 | * // => { 'a': 1, 'b': 2 }
|
11701 | 11687 | */
|
11702 | 11688 | var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
|
11703 |
| - copyObjectWith(source, keys(source), object, customizer); |
| 11689 | + copyObject(source, keys(source), object, customizer); |
11704 | 11690 | });
|
11705 | 11691 |
|
11706 | 11692 | /**
|
|
0 commit comments