DEV Community

Discussion on: 4 ways to convert a string to an array in Javascript

Collapse
 
leob profile image
leob • Edited

Woa ... Object.assign([],str); ... wouldn't ever have fathomed that something like that would work, in this way! (I wasn't even aware that Object.assign to an array would do anything that makes sense)