unique
This tags splits on comma and removes any duplicates.
Created by: hackvertor
Installed 1 times
Viewed: 48
Category: Array
Created on: Monday, October 7, 2024 at 9:46:06 PM
Updated on: Sunday, May 25, 2025 at 5:29:43 PM
Tag arguments
[]
Code
class unique {
encode(input) {
return [...new Set(input.split(","))];
}
}