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

author of over 600 modules and 1200 lines of javascript.


Wow, you were not kidding. I chose a random package of his [1], and indeed: a grand total of 1 LOC...

This is madness.

[1] https://github.com/sindresorhus/float-equal/blob/master/inde...


and it uses another 1LOC package. https://github.com/sindresorhus/number-epsilon/blob/master/i...

and no, the edge cases argument does not apply to either of them. Wow.


Would you like to memorise that number yourself to use in your app?


What memorise? How about this for a dependency:

https://www.google.com.au/search?q=es6+epsilon


That module exists precisely because this is a new addition to the language, it's a polyfill for backwards compatibility.




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

Search: