Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  if (is_same_variable(exp, variable)) {
    return 1;
  } else {
    return 0;
  }
should be

   return +is_same_variable(exp, variable)


Yeah, though might want to use Number(is_same_variable(..)) for additional clarity.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: