* 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)
| 15368 | * @returns {Array} Returns `array`. |
| 15369 | */ |
| 15370 | function copyArray(source, array) { |
| 15371 | var index = -1, |
| 15372 | length = source.length; |
| 15373 | |
| 15374 | array || (array = Array(length)); |
| 15375 | while (++index < length) { |
| 15376 | array[index] = source[index]; |
| 15377 | } |
| 15378 | return array; |
| 15379 | } |
| 15380 | |
| 15381 | /** |
| 15382 | * Copies properties of `source` to `object`. |
no outgoing calls
no test coverage detected