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']
For further actions, you may consider blocking this person and/or reporting abuse
Jagroop Singh -
Peter Wan -
Arindam Majumder -
T.H. Jacobs -
Top comments (0)