Original array with duplicates:
const nonUnique = [1, 4, 1, 3, 3]
Array with unique values only:
const uniqueArr = [...new Set(nonUnique)] // [1, 4, 3]
Original array with duplicates:
const nonUnique = [1, 4, 1, 3, 3]
Array with unique values only:
const uniqueArr = [...new Set(nonUnique)] // [1, 4, 3]
For further actions, you may consider blocking this person and/or reporting abuse
Anwar Hossain -
ramadhan.dev -
websilvercraft -
Diego Juliao -
Top comments (0)