4 ms·
You'll need to insert a newline and 2 spaces before a code block to be recognized as such: switch(expr) { case 'foo': break; case { foo: bar
by armandososa 8y ago
You'll need to insert a newline and 2 spaces before a code block to be recognized as such:
switch(expr) {
case 'foo': break;
case { foo: bar }: break;
}
https://news.ycombinator.com/formatdoc https://news.ycombinator.com/formatdoc
- maemilius 8y agoAh, thanks. I should have guessed it would work something like that.