Split Strings CodeWars n letters per array element
function solution(str){
var i = 0;
var result = new Array();
if (str.length % 2 !== 0) {
str = str + '_';
}
while (i < str.length) {
result.push(str[i] + str[i+1]);
i += 2;
}
return result;
}