DEV Community

Discussion on: JavaScript Sets are Excellent!

Collapse
 
jamesthomson profile image
James Thomson

Almost, it won't exclude the space so you'd have to do something like [...new Set([...'Hello World'.replace(/\s/g, '')])] which kinda ruins how nice and concise this was :(

Thread Thread
 
jacobmgevans profile image
Jacob Evans

All awesome implementations!!