DEV Community

Discussion on: 10 useless NPM Package with millions of downloads

Collapse
 
siddharthshyniben profile image
Siddharth

I guess you still can make is-unodd, which doesn't exist

Thread Thread
 
vukky profile image
Vukky

Are you sure?

Thread Thread
 
siddharthshyniben profile image
Siddharth

:D

Thread Thread
 
siddharthshyniben profile image
Siddharth

is-unodd negates is-uneven negates is-even negates is-odd which returns !!(~~i & 1)