split string setiap karakter n javascript

var foo = "foofaafoofaafoofaafoofaafoofaa";
console.log( foo.match(/.{1,3}/g) );
 Run code snippetHide results
Nutty Narwhal