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
Jaime -
chowderhead -
sharathchandark -
FAB Builder | Code Generation -
Top comments (0)