0 points

sort array by date typescript - Google Search


dashboard

Mon Nov 16 2020 14:22:51 GMT+0000 (UTC)

Posted by @ali_alaraby #typescript

array.sort((x, y) => +new Date(x.createdAt) - +new Date(y.createdAt));
content_copy Copy

https://www.google.com/search?q