Contact: aviboots(AT)netvision.net.il
40,011 questions
51,958 answers
573 users
const str: string = "abcd"; let charArray: string[] = str.split(""); console.log(charArray); /* run: ["a", "b", "c", "d"] */
const str: string = "abcd"; let charArray: string[] = [...str]; console.log(charArray); /* run: ["a", "b", "c", "d"] */