Jump to content
Sign in to follow this  
R3vo

"class1,class2,class3" -> ["class1","class2","class3"]

Recommended Posts

Hey folks,

is there an easy method to change

"class1,class2,class3"

into

["class1","class2","class3"]

The size of the array may be less than 3 entries or more.

 

Any help would be apprechiated.

Share this post


Link to post
Share on other sites
_classArray = "class1,class2,class3" splitString ",";

 

Ha! That was easy, thanks for the help ;)

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×