Sorts the numbers of an array in descending order and returns a new array.
The array to sort
A new array with the numbers sorted in descending order
<pre> const original = [10, 20]; const result = [20, 10]; expect(sortNumbersDescending(original)).to.eql(result);</pre> Copy
<pre> const original = [10, 20]; const result = [20, 10]; expect(sortNumbersDescending(original)).to.eql(result);</pre>
Generated using TypeDoc
Sorts the numbers of an array in descending order and returns a new array.