News for hackers. Stuff that matters.
Re:Clear is better than clever [pdf] by franciscop on Monday May 06, 2019 @08:00PM (#19845161)
I prefer to put it into a function and do early return/guard clauses for complex conditionals:

    const pick = (param1, ...) => {
      if (cond1) return 1;
      if (cond2) return 10;
      return 100;
    };

There are no comments on this comment yet.