let shuffled = listPost.map((a) => [Math.random(),a]).sort((a,b) => a[0]-b[0]).map((a) => a[1]);
Improve myself
JavaScript, Uncategorized
Δ
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Create a free website or blog at WordPress.com.
Up ↑
Leave a comment