Hacker News new | ask | show | jobs
by AnkhMorporkian 3595 days ago
If you're going ES6, why not just:

  import {solve} from 'logic'
  
  solve((x,y) => x === "mcbob" && y === "bob" || x === "bob" && y === "bill");
1 comments

Just because you can use the shorthand syntax, doesn't mean you always should.
I wouldn't say it's that bad. A curly brace would make it a bit clearer though.
I prefer my code to be more than "it's not that bad" when it comes to readability.