3 ms·
Fine concise reference! While SPLITting a string into an array is useful, JOINing array elements to create a string is also useful. e.g. let x = commaSepList
by 8bitsrule 6y ago
Fine concise reference!
While SPLITting a string into an array is useful, JOINing array elements to create a string is also useful.
e.g. let x = commaSepList.split(',').join('\n')
- davethedevguy 6y agoThanks! I'm not sure how I managed to completely forget about joining strings. I'll add that.