alatoru Jun 2nd, 2020 620 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- let a = [1, 2, 3, 3, 3, 4, 5];
- let t = [...new Set(a)].sort((a, b) => a - b);
RAW Paste Data