[Solved] How to do array from the string ? [closed]


var urlToSplit = "https://stackoverflow.com/#/schedulePage/some/another"

var onlyAfterHash = urlToSplit.split("/#/")[1];
var result = onlyAfterHash.split("https://stackoverflow.com/");

console.log(result);

8

solved How to do array from the string ? [closed]