Created
July 16, 2017 08:56
-
-
Save mornir/531096bcf839cbc15e4f142efdbfb65d to your computer and use it in GitHub Desktop.
String parsing using array destructuring
This file contains 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 pathUrl = "c:/alex/mesdocument"; | |
const [server, user, directory] = pathUrl.split("/"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment