0

Possible Duplicate:
how to split a string in javascript

how can i split a string into a array in javascript ?

0

1 Answer 1

1

You can use split(), using a pattern that matches your separator :

>>> 'a,b,c'.split(/,/)
["a", "b", "c"]
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.