JavaScript question detail
How do you get unique values of an array
You can get unique values of an array with the combination of Set and rest expression/spread(...) syntax.
console.log([...new Set([1, 2, 4, 4, 3])]); // [1, 2, 4, 3]
JavaScript question detail
You can get unique values of an array with the combination of Set and rest expression/spread(...) syntax.
console.log([...new Set([1, 2, 4, 4, 3])]); // [1, 2, 4, 3]