var str = "ab=cdfdf=wqe";var arr = [str.split ("=")[0], str.split ("=").slice(1).join("=")];console.log (arr);