Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2021
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const array = [1, 3, 2, 3, 2, 1, true, false, true, 'Kio', 2, 3];
  2. const filteredArray = [...new Set(array)];
  3. console.log(filteredArray) // [1, 3, 2, true, false, "Kio"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement