var partsOfStr = str.split(',');
var array = string.split(',')
and good morning, too, since I have to type 30 chars ...
var result; result = "1,2,3".split(","); console.log(result);
More info on W3Schools describing the String Split function.
©2020 All rights reserved.