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("$")); // ["##","##","#"]
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #split #array
ADD COMMENT
Topic
Name
5+7 =