DEV Community

Discussion on: I just created my first NPM package. It ain't much but it's honest work

Collapse
fatardy profile image
Aradhya Alamuru

Haha I had a very similar post planned - you beat me to it!

The is-even package has a dependency - is-odd lolol

var isOdd = require('is-odd');
module.exports = function isEven(i) {
  return !isOdd(i);
};
Enter fullscreen mode Exit fullscreen mode
Collapse
ispoljari profile image
Ivan Spoljaric Author

Yeah, but that is some genius level stuff :)

Collapse
fatardy profile image
Aradhya Alamuru

Lol the only thing left is to get it into the react core or something