Timeline for Tips for golfing in JavaScript
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 9, 2022 at 0:40 | comment | added | Lewis Nakao |
You could also do this: "alpha,bravo,charlie".split`,`
|
|
Apr 1, 2022 at 15:26 | comment | added | Domino |
I've also used "AlphaBravoCharlie".split(/(?=[A-Z])/) once. Only useful when you have a lot of words to split.
|
|
Sep 16, 2019 at 9:32 | comment | added | Kamil Kiełczewski |
"alpha,bravo,charlie".split`,`
|
|
Apr 15, 2017 at 22:41 | comment | added | David Archibald |
in ES6 this doesn't matter anymore, you can just do .split`...`
|
|
Nov 3, 2015 at 19:37 | comment | added | NiCk Newman | Lol this is actually pretty creative | |
Feb 20, 2015 at 2:37 | history | wiki removed | Doorknob | ||
Feb 12, 2015 at 3:55 | comment | added | Claudia | It works, and I've used it for multiple digits. | |
May 15, 2013 at 23:42 | history | answered | ajax333221 | CC BY-SA 3.0 |