I have a bunch of letters on each line which is being outputted by the var current. I want to split them into an array and my desired output is shown below my code.
current prints out:
I
T
and so on...
each letter on a new line.
JS:
function check(event) {
    var current = event.target.innerText;
    var letters = current.split();
    for (i=0; i<letters.length; i++) {
        letters[i] = letters[i].replace(/\s/g,"").split("");
        console.log(letters);
    }
}
current output = [ [ 'I', 'T', 'U', 'M', 'A', 'R', 'B', 'R', 'D', 'I', 'U', 'T', 'E', 'L', 'N' ] ]
desired output = [ 'I', 'T', 'U', 'I', 'M', 'A', 'R', 'B', 'R', 'D', 'U', 'T', 'E', 'L', 'N' ]
My problem is that I have two square brackets on my current output. I just want one, as shown in the desired output.
 
     
     
     
    