DEV Community

loading...

Discussion on: Daily Challenge #273 - Remove Duplicates

Collapse
vishaalkathiriya profile image
Vishal Kathiriya

In JavaScript (ES6)

const originalArray = [3,4,4,3,6,3];
const distinctArray = [...new Set(originalArray)];

Collapse
qm3ster profile image
Mihail Malo