Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

how to sort numbers in typescript

var numericArray: number[] = [2, 3, 4, 1, 5, 8, 11];

var sortedArray: number[] = numericArray.sort((n1,n2) => n1 - n2);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sort #numbers #typescript
ADD COMMENT
Topic
Name
5+6 =