How to remove duplicate values from an array - es6
Set object can be used to remove duplicate values from an array.
const arr = [1,4,7,8,1,9,4];
const result = [...new Set(arr)];Or
Or
Set object can be used to remove duplicate values from an array.