[Solved] How to do array from the string ? [closed]
[ad_1] var urlToSplit = “https://stackoverflow.com/#/schedulePage/some/another” var onlyAfterHash = urlToSplit.split(“/#/”)[1]; var result = onlyAfterHash.split(“https://stackoverflow.com/”); console.log(result); 8 [ad_2] solved How to do array from the string ? [closed]