Converts a comma separated list of values in a string to a JavaScript array.
If the allowBlanks parameter is true any empty values will also be included in the returned array. This function can be useful when processing multi-selection field types.
Arguments
Argument | Type | Description |
---|---|---|
list | String, required | Comma separated list of values as a string. |
allowBlanks | Boolean, optional | If true blank elements of the list will be included. |
Returns
Array