loaders ยป commaSeparated
commaSeparated() โ array
commaSeparatedItems() โ array
commaSeparatedList() โ array
Splits a comma-separated listing (single line, think a list of tags e.g.) into an array and trims whitespace.
enoTags: Coffee, Desk, Flavor
Categories: Computing , High performance , Cluster
javascriptconst document = eno.parse(input);
document.commaSeparated('Tags'); // returns ['Coffee', 'Desk', 'Flavor']
document.commaSeparated('Categories'); // returns ['Computing', 'High performance', 'Cluster']