(nums)
| 6 | * @return {number[]} |
| 7 | */ |
| 8 | const sortArray = function (nums) { |
| 9 | return mergeSort(0, nums.length - 1, nums); |
| 10 | }; |
| 11 | |
| 12 | const mergeSort = (left, right, nums) => { |
| 13 | if (left === right) return nums; |
nothing calls this directly
no test coverage detected