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
reverse Ch -
Muhammad Awais -
Jeet Dhandha -
ng-news -
Top comments (0)