https://ru.stackoverflow.com/questions/ask?param=myparam&test=testname
There are functions for extracting all parameters, but how to delete a specific one?
maybe there is a ready-made function to not use regulars? In this case, I need to remove the myparam parameter, which can stand in any part not only first. At the output, the line should look like:
var hash = {}; url.split('?')[1].split('&').foreach((e)=>{hash[e.split('=')[0]]=e.split('=')[1]})var hash = {}; url.split('?')[1].split('&').foreach((e)=>{hash[e.split('=')[0]]=e.split('=')[1]})Well, and then delete from the hash, and collect back. :-) - Chad