Answers for "compare and sort date in an array of column in angular 8"

6

sort array by date typescript

array.sort((x, y) => +new Date(x.createdAt) - +new Date(y.createdAt));
Posted by: Guest on November-16-2020

Code answers related to "compare and sort date in an array of column in angular 8"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language