Christopher Glikpo ⭐ Posted on Nov 23, 2022 String to character array #javascript #webdev #beginners #programming Converts a string to an array of characters. Use the spread operator (...) to convert the string into an array of characters. const toCharArray = string => [...string]; toCharArray('Glikpo'); // ['G', 'l', 'i', 'k', 'p', 'o'] Enter fullscreen mode Exit fullscreen mode Top comments (0) Subscribe Submit Preview Dismiss Code of Conduct • Report abuse
Top comments (0)