Generation

generate functionThu, 01 Dec 2022

remove duplicate elements in string arraylist

Script const unique = (arr) => { return [...new Set(arr)]; } unique(['a', 'b', 'c', 'b', 'a', 'd'])

Questions about programming?Chat with your personal AI assistant