5 ms·
is-odd dependency, is-number, has 52,783,048 weekly downloads. (https://www.npmjs.com/package/is-number https://www.npmjs.com/package/is-number)
by Fiahil 5y ago
is-odd dependency, is-number, has 52,783,048 weekly downloads. (https://www.npmjs.com/package/is-number https://www.npmjs.com/package/is-number)
- jazzyjackson 5y agojust bizarre considering javascript has isNaN, Number.isFinite, and Number.isInteger; I guess there's a style of development where you check if what you want to do exists in npm first, without thinking about what the language itself offers.
- toshgoodson 5y agoit's not too bizarre when you consider no version of IE supports Number.isFinite or Number.isInteger.
- jazzyjackson 5y agobut this is an npm package, would a client side application be importing this code? surely at that point you could just include some Number polyfill as well (but you're right I was only thinking of node)
- EtienneK 5y agoYes, client side applications use npm as well.
- throw_m239339 5y ago> it's not too bizarre when you consider no version of IE supports Number.isFinite or Number.isInteger. If you are extensively using nodejs libraries to target IE, then you have other problems than supporting Number.isFinite or Number.isInteger to deal with first, considering that IE doesn't support modern ES versions in anyway. You'd have to use shims,polyfills and whatnot at first place and transpile all that npm code into something IE can run. This isn't a very good argument to add an "is-even" package.