Skip to main content
16 events
when toggle format what by license comment
Nov 18, 2020 at 14:33 comment added Henry Henrinson lmao, all these ways to avoid the correct solution of implementing the Option monad correctly.
Aug 2, 2020 at 16:13 comment added Makyen Please consider updating this to mention the optional chaining operator, ?.,. Browser support isn't at the point where I'd use it for general code, but it's heading in that direction. In addition, there's now the nullish coalescing operator (??), with a similar status.
Apr 12, 2018 at 8:58 comment added Neowizard @mikerodent, My thoughts exactly.
Jan 20, 2018 at 17:56 comment added mike rodent Am I going bananas? Surely the objection of user2451227 (currently with 4 votes) is invalid because the ternary's middle operand (i.e. right operand with the Elvis operator) would equally not be picked if the expression/left operand is defined and falsy. In both cases you then have to go x === undefined.
S Apr 3, 2017 at 16:44 history suggested andrewf CC BY-SA 3.0
Adds missing word from first sentence.
Apr 3, 2017 at 14:57 review Suggested edits
S Apr 3, 2017 at 16:44
Oct 4, 2016 at 17:25 comment added jinglesthula While this answers the question it is almost entirely about coffeescript rather than javascript, and is more than half about describing coffeescript benefits unrelated to the OP. I'd suggest boiling it down to just what's relevant to the question, as wonderful as coffeescript's other benefits are.
Aug 9, 2016 at 22:09 comment added Elias Zamaria The CoffeeScript home page uses <script type="text/coffeescript">.
Aug 9, 2016 at 22:09 history edited Elias Zamaria CC BY-SA 3.0
Another very minor fix.
Jun 28, 2016 at 20:42 history edited Lime CC BY-SA 3.0
added 1 character in body
Jul 7, 2015 at 1:12 comment added JCCM Is it my mistake, or it is really <script type='coffee/script>'?
Aug 7, 2014 at 9:06 comment added user2451227 logical or is not quite the thing needed in most cases, as you may want it to pick the right operand only if the left is undefined but not when it is defined and falsy.
Apr 12, 2013 at 0:12 history edited Lime CC BY-SA 3.0
added 167 characters in body
Jul 7, 2011 at 19:15 vote accept tiagomac
Jul 7, 2011 at 16:52 history edited Lime CC BY-SA 3.0
added 150 characters in body
Jul 7, 2011 at 16:40 history answered Lime CC BY-SA 3.0