How to convert each character in the string to an array using the Array.from() method in JavaScript?
Originally Published Here ๐!
To convert each character in a string into an array, we can use the from() method from the global Array object in JavaScript.
Consider a string called Hello! like this,
// random string
const str = "Hello!";
Now to conv...
melvingeorge-me.hashnode.dev1 min read