Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript split array

Array.prototype.split=function(ifs){return this.join("").split(ifs)}
let myArray = ["#", "#", "$", "#", "#", "$", "#"]
console.log(myArray.split("$")); // ["##","##","#"]
 
PREVIOUS NEXT
Tagged: #javascript #split #array
ADD COMMENT
Topic
Name
8+9 =