Created
May 22, 2018 07:19
-
-
Save dongkwan-kim/8aaa556b864edbffe83fba862ec2ef04 to your computer and use it in GitHub Desktop.
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
function getArray(s) { | |
var arr = s.split(/(\s+)/).filter((e) => { | |
return e.trim().length > 0; | |
}); | |
return arr; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment