Created
May 21, 2020 19:30
-
-
Save mhamzas/4907848214980ed5bbeab8caa2ea86e2 to your computer and use it in GitHub Desktop.
JS - Split String without empty elements
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
| str.split(' ').filter(function(i){return i}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment