Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript sort number array descending

values.sort((one, two) => (one > two ? -1 : 1));
 
PREVIOUS NEXT
Tagged: #typescript #sort #number #array #descending
ADD COMMENT
Topic
Name
1+2 =