SplitJuly 22, 2019/in JavaScript/by Génesis Splits a string into an array of strings, without any JavaScript method at all. http://gengns.com/wp-content/uploads/2015/05/logo-onepage-300x66.png 0 0 Génesis http://gengns.com/wp-content/uploads/2015/05/logo-onepage-300x66.png Génesis2019-07-22 13:08:042019-07-29 17:48:27Split
japanfever says: July 23, 2019 at 01:49 //japanfever variant E3839EE383AAE382AAE9B3A9E38388E383ACE383AD function split1(str, del) { let arr = []; let piece = ""; for (let i = 0; i < str.length; i++) { let j = 0; while (j < del.length && (i + j) < str.length && str[i + j] == del[j]) j++; if (j == del.length) { arr.push(piece); piece = ""; i += j - 1; } else { piece += str[i]; } } arr.push(piece); return arr; }
Génesis says: July 29, 2019 at 17:18 You can use plain HTML, I fixed it surrounding the code tags with pre tags.
the fucking blog has screwed me again the indented
You can use plain HTML, I fixed it surrounding the code tags with pre tags.