3 ms·
That is indeed, depending on the context (you know the strings won't contain commas OR that it should be split in the commas), one way to do it in Javascript (
by franciscop 10y ago
That is indeed, depending on the context (you know the strings won't contain commas OR that it should be split in the commas), one way to do it in Javascript ( https://github.com/franciscop/umbrella/blob/master/src/plugins/args/args.js#L17 https://github.com/franciscop/umbrella/blob/master/src/plugi... ):
return args.toString().split(/[\s,]+/).filter(/* ... */);