How to split comma separated string in JavaScript

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

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