Really, pretty much what the title says.
Say you have this string:
var theString = \"a=b=c=d\";
Now, when you run theString
theString
If you want to do that in less lines and avoiding loops:
const theString = "some=string=with=separators"; const limit = 2; const parts = theString.split('=', limit); parts.push(theString.slice(parts.join('').length + limit));