* 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)
| 12479 | * @returns {Array} Returns `array`. |
| 12480 | */ |
| 12481 | function copyArray(source, array) { |
| 12482 | var index = -1, |
| 12483 | length = source.length; |
| 12484 | |
| 12485 | array || (array = Array(length)); |
| 12486 | while (++index < length) { |
| 12487 | array[index] = source[index]; |
| 12488 | } |
| 12489 | return array; |
| 12490 | } |
| 12491 | |
| 12492 | /** |
| 12493 | * Copies properties of `source` to `object`. |
no outgoing calls
no test coverage detected