Skip to main content
20 events
when toggle format what by license comment
S Mar 29, 2019 at 17:03 history suggested 0TTT0 CC BY-SA 4.0
remove 'return'; braces are required if return is here. also x should be v
Mar 29, 2019 at 15:03 review Suggested edits
S Mar 29, 2019 at 17:03
Oct 1, 2017 at 15:30 comment added Stan Strum @edc65 I did, yes
Oct 1, 2017 at 13:50 history edited edc65 CC BY-SA 3.0
deleted 4 characters in body
Oct 1, 2017 at 13:47 comment added edc65 Let us continue this discussion in chat.
Oct 1, 2017 at 12:58 comment added manatwork Nope. This time is really weird: i.sstatic.net/o0AMa.png
Oct 1, 2017 at 11:59 comment added edc65 Could you please try var values ... to see if that works? Thanks for your time @manatwork
Oct 1, 2017 at 10:41 comment added manatwork Seems to be Firefox related i.sstatic.net/S4kPX.png In Chromium indeed works everywhere.
Oct 1, 2017 at 10:16 comment added edc65 @manatwork don't see what you mean, I tried use case 1 in console with Firefox, Chrome and Edge. It works perfectly
Oct 1, 2017 at 9:56 comment added manatwork Maybe the downvoter was mislead by the “TypeError: values is not iterable” thrown when trying to run Use case 1 in global space. I think in such cases it refers to Object.values(), but works fine inside a closure. I would suggest to rename that variable in your example.
Oct 1, 2017 at 9:35 comment added edc65 @FelixDombek done
Oct 1, 2017 at 9:34 history edited edc65 CC BY-SA 3.0
added 151 characters in body
Oct 1, 2017 at 9:31 comment added edc65 @StanStrum it happens. I'll make a small update to this post so you can eventually change your vote (or you already did?)
Oct 1, 2017 at 1:20 comment added Stan Strum Misclick did not mean to downvote
Jul 18, 2017 at 11:17 comment added Felix Dombek You could add that it also has a use case in function signatures :)
May 25, 2016 at 9:46 comment added gcampbell It looks alright. Maybe it was the lack of semicolons? ;) (btw, you can also use it as rest parameters, like splats in Ruby)
Feb 9, 2016 at 21:04 comment added edc65 Now I have a downvote here. Obviously someone noted something terribly wrong in this tip, being too shy to leave a comment and explain what ...
Feb 20, 2015 at 2:52 history wiki removed Doorknob
Sep 12, 2014 at 17:38 history edited William Barbosa CC BY-SA 3.0
added 1 character in body
Sep 12, 2014 at 16:55 history answered edc65 CC BY-SA 3.0