|
|
|
|
|
by jfengel
83 days ago
|
|
I occasionally run into problems with JS weird parsing rules. My favorite is: return
x
Which does not return. It returns undefined.Typescript helps a lot with that. A linter will probably flag it as well. Still, JS went way out of its way to accept just about anything, whether it makes sense or not. |
|
return 0,
x;
I find this a mildly amusing discovery for myself because it took me a long time to figure out a useful use for the comma-operator.