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