Last active
December 28, 2018 00:04
-
-
Save magician11/737054241abc4fd4f61b26429abe3cd7 to your computer and use it in GitHub Desktop.
How to remove duplicates in a csv field
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const removeDuplicates = csvStr => [...new Set(csvStr.split(',').map(tag => tag.trim()))].join(', '); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
some examples..