How to split comma separated string using JavaScript? [duplicate]

var partsOfStr = str.split(',');

split()

Leave a Comment