π‘ #tip - How to remove duplicate items in the array?
It's simple!π
const array = [1, 2, 2, 3, 4, 4];
const uniqueValues = [...new Set(array)]; // [1, 2, 3, 4]
π References
For further actions, you may consider blocking this person and/or reporting abuse
Pranav Bakare -
Gaurav Poudel -
bardui -
Meesmsik -
Top comments (0)