* Copies the values of `source` to `array`. * * @private * @param {Array} source The array to copy values from. * @param {Array} [array=[]] The array to copy values to. * @returns {Array} Returns `array`.
(source, array)
| 4830 | * @returns {Array} Returns `array`. |
| 4831 | */ |
| 4832 | function copyArray(source, array) { |
| 4833 | var index = -1, |
| 4834 | length = source.length; |
| 4835 | |
| 4836 | array || (array = Array(length)); |
| 4837 | while (++index < length) { |
| 4838 | array[index] = source[index]; |
| 4839 | } |
| 4840 | return array; |
| 4841 | } |
| 4842 | |
| 4843 | /** |
| 4844 | * Copies properties of `source` to `object`. |
no outgoing calls
no test coverage detected