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