Levent Ozturk
Enter
Javascript: Split string into equal chunks String.prototype.chunk = function(n) { //convert any text string into an array with each chunk // (except possibly the last) being the specified size // (or 2 characters if you don't specify a size). if (typeof n=='undefined') n=2; return this.match(RegExp('.{1,'+n+'}','g')); };
All the material listed and linked at this World Wide Web domain are strictly private property and copyrighted. © Copyright -∞-∞ Levent Ozturk. All rights reserved. Reproduction or use of any material, documents and related graphics and any other material from this World Wide Web server is strictly prohibited. Site Map