Edit in JSFiddle
JavaScript
Result
const array = [5, 2, 4, 5, 3]; document.writeln([...new Set(array)]);