RosettaCodeData/Task/Remove-duplicate-elements/JavaScript/remove-duplicate-elements-4.js

4 lines
71 B
JavaScript
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
Array.prototype.unique = function() {
return [... new Set(this)]
}