* 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)
| 12390 | * @returns {Array} Returns `array`. |
| 12391 | */ |
| 12392 | function copyArray(source, array) { |
| 12393 | var index = -1, |
| 12394 | length = source.length; |
| 12395 | |
| 12396 | array || (array = Array(length)); |
| 12397 | while (++index < length) { |
| 12398 | array[index] = source[index]; |
| 12399 | } |
| 12400 | return array; |
| 12401 | } |
| 12402 | |
| 12403 | /** |
| 12404 | * Copies properties of `source` to `object`. |
no outgoing calls
no test coverage detected