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
Devops Den -
bing -
kit2d2 -
Domenico Tenace -
Top comments (0)