1.2.1 • Published 4 years ago

oddoreven v1.2.1

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

#NPM pakage to determine if a number is odd or even npm npm bundle size npm ###Install with npm:

$ npm install oddoreven

###Usage:

const oddeven = require('oddoreven');
//isodd() and iseven() functions take integer as input and returns boolean

oddeven.iseven(3)  //returns false     

oddeven.isodd(3)   //returns true
//pickodd()  and pickeven() functions takes array as input and returns array

oddeven.pickodd([1,2,3,4,5,6,7,8,9])    // returns [1,3,5,7,9]

oddeven.pickeven([1,2,3,4,5,6,7,8,9])   // returns [2,4,6,8]
1.2.1

4 years ago

1.2.0

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.0.2

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago