(arr, startIndex, endIndex)
| 13 | } |
| 14 | exports.createAsyncTask = createAsyncTask; |
| 15 | function reverseInPlace(arr, startIndex, endIndex) { |
| 16 | if (startIndex === void 0) { startIndex = 0; } |
| 17 | if (endIndex === void 0) { endIndex = arr.length - 1; } |
| 18 | for (var i = startIndex; i <= startIndex + Math.floor((endIndex - startIndex) / 2); i++) { |
| 19 | var temp = arr[i]; |
| 20 | arr[i] = arr[endIndex - i + startIndex]; |
| 21 | arr[endIndex - i + startIndex] = temp; |
| 22 | } |
| 23 | } |
| 24 | exports.reverseInPlace = reverseInPlace; |
| 25 | function chopInputArray(arr, size) { |
| 26 | var res = []; |
nothing calls this directly
no outgoing calls
no test coverage detected