Skip to main content
6 events
when toggle format what by license comment
Jun 23, 2020 at 16:40 comment added dpjanes The core concept being Array.from(new Set(<some list>)).
Jun 23, 2020 at 16:39 comment added dpjanes hahah I love a challenge. Not fully chained, but one line: console.log(Array.from(new Set("I LOVE STACKOVERFLOW LOL LOVE".split(" ").filter(s => s.length))).join(" "))
Jun 22, 2020 at 15:09 comment added xSachinx @dpjanes thanks, mate, do we have any similar chain function to get "DISTINCT" element from an array, we will be using the same array, no new array
Mar 28, 2020 at 9:29 comment added dpjanes consider: console.log(testStr.split(" ").filter(s => s.length).join(" "))
Jan 31, 2020 at 22:25 review Late answers
Jan 31, 2020 at 22:37
Jan 31, 2020 at 22:09 history answered xSachinx CC BY-SA 4.0