4 ms·
author of over 600 modules and 1200 lines of javascript.
by jdonaldson 11y ago
author of over 600 modules and 1200 lines of javascript.
- gone35 11y agoWow, 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/index.js https://github.com/sindresorhus/float-equal/blob/master/inde...
- serge2k 11y agoand it uses another 1LOC package. https://github.com/sindresorhus/number-epsilon/blob/master/index.js https://github.com/sindresorhus/number-epsilon/blob/master/i... and no, the edge cases argument does not apply to either of them. Wow.
- ricardobeat 11y agoWould you like to memorise that number yourself to use in your app?
- wyattpeak 11y agoWhat memorise? How about this for a dependency: https://www.google.com.au/search?q=es6+epsilon https://www.google.com.au/search?q=es6+epsilon
- ricardobeat 11y agoThat module exists precisely because this is a new addition to the language, it's a polyfill for backwards compatibility.