Really, pretty much what the title says.
Say you have this string:
var theString = \"a=b=c=d\";
Now, when you run theString
theString
const theString = "a=b=c=d"; const [first, ...rest] = theString.split("="); const second = rest.join("=") console.log(first, second)
If you are using ECMA 2015, you just need 2 lines.