fork download
  1. const haystack = "Test, test test, Test 1, T.est 2, te#st 3, test 4";
  2.  
  3. const TESTOUTPUT = haystack.split(/\s*,\s*/);
  4.  
  5. console.log(TESTOUTPUT);
  6. console.log(TESTOUTPUT.length);
Success #stdin #stdout 0.03s 18884KB
stdin
Standard input is empty
stdout
Test,test test,Test 1,T.est 2,te#st 3,test 4
6