Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • \$\begingroup\$ I was doing it without es6, but yeah that would be 1 byte shorter, thanks. \$\endgroup\$ Commented Jul 19, 2016 at 20:07
  • \$\begingroup\$ Why would you not use lambda? \$\endgroup\$ Commented Jul 19, 2016 at 20:08
  • \$\begingroup\$ no good reason, i just haven't used it that much, so it's not my first instinct \$\endgroup\$ Commented Jul 19, 2016 at 20:09
  • \$\begingroup\$ Apparently we're allowed to return false instead of 0 (as it auto-converts to 0 in an integer expression) in which case you can drop the |0. \$\endgroup\$ Commented Jul 19, 2016 at 20:17
  • \$\begingroup\$ That would save 1 byte, but what do you mean by "it auto-converts to 0"? What is "it"? \$\endgroup\$ Commented Jul 19, 2016 at 20:21