1 const uniqueArray = [...new Set([1, 2, 2, 3, 3, 3])] // [ 1, 2, 3 ]
1 function randomString() {
2 const mathRandom = Math.random().toString(16).slice(2, 7);
3 const dateRandom = Date.now().toString().slice(7);
4
5 return mathRandom + dateRandom;
6 }
7
8 randomString(); // 'a35cb487380'