(array)
| 1 | function reverseArray(array) { |
| 2 | let output = []; |
| 3 | for (let i = array.length - 1; i >= 0; i--) { |
| 4 | output.push(array[i]); |
| 5 | } |
| 6 | return output; |
| 7 | } |
| 8 | |
| 9 | function reverseArrayInPlace(array) { |
| 10 | for (let i = 0; i < Math.floor(array.length / 2); i++) { |
no outgoing calls
no test coverage detected