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
thinkThroo -
Rails Designer -
Metta Surendhar -
KAMAL KISHOR -
Top comments (0)