// Convert a string to an array
//THIS IS THE SAME AS str_split  IN PHP


let letters = "ABC";
for(let letter of letters){
    console.log(letter); // A B C
}

the above code when executed, will create an array of three elements A B C

Typescript Es6 Javascript Convert A String To An Array

Copyright 2018 www.webune.com [Minimal Version]