Array.prototype.split=function(ifs){return this.join("").split(ifs)} let myArray = ["#", "#", "$", "#", "#", "$", "#"] console.log(myArray.split("$")); // ["##","##","#"]