How to split comma separated string in JavaScript

Strings
Last updated Dec 24, 2017
const csv = "Eat,Sleep,Code,Repeat";

csv.split(",");
['Eat', 'Sleep', 'Code', 'Repeat']