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

> This ist just an example for why one would favor well-tested utilities over re-inventing the wheel

No, it really isn't. The library does not dictate how things should be done, that's the fantastic thing about using your own utilities. In my implementation, we return the value itself if it's falsy. In yours, we return an empty array. Again, trivial "fix" (not that there's anything to "fix", it's a matter of convention, not correctness).



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

Search: