Contact: aviboots(AT)netvision.net.il
39,914 questions
51,847 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"] */