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

The NaN library is literally just testing if the value is a number with typeof v === 'number' then tests if v !== v. This is not something you need a library for at all, big or small.


Yeah, this is my philosophy when developing Erlang software as well (also seems to be shared by most of that community). A few dependencies less are always worth a few functions more.




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

Search: