jQuery string split

jQuery, .split()

by harifrais

JavaScript

var input = "1 sun,2 mon,3 tue,4 wed,5 thu,6 fri,7 sat,8 sun,9 mon,10 tue,11 wed,12 thu,13 fri,14 sat,15 sun,16 mon,17 tue,18 wed,19 thu,20 fri,21 sat,22 sun,23 mon,24 tue,25 wed,26 thu,27 fri,28 sat,29 sun,30 mon,31 tue";

var arr = input.split(",");

console.log(arr);