Created
September 20, 2017 10:35
-
-
Save andreypelykh/75e9b99f0f7cef7cf99692b1d2a19c93 to your computer and use it in GitHub Desktop.
convert keywords to jasvascript array
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 str: string; | |
str.split(',').map(e=> `'${e.trim()}'`).join(', ') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment