Answers for "split every n character js"

1

split every n character js

var str = 'abcdefghijkl';
console.log(str.match(/.{1,3}/g));
Posted by: Guest on June-27-2020

Code answers related to "split every n character js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language