jquery convert a string to an array

JavaScript
var numbersString = "1,2,3,4,5,6";
var numbersArray = numbersString.split(',');
Source

Also in JavaScript: