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

You could switch the order they're compared and due to short-circuiting the second eval would only ever take place once. Or initialize min to the zeroth item in the array.


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

Search: