1.0.0 • Published 4 months ago
is-probably-odd v1.0.0
is-probably-odd
A fun npm package that tells you if a number is odd... probably! It always returns with 50% confidence, because why not?
Installation
npm install is-probably-odd
Usage
const isProbablyOdd = require("is-probably-odd");
const result = isProbablyOdd(5);
console.log(result);
// {
// number: 5,
// isOdd: true,
// conf: 0.5
// }
API
isProbablyOdd(number)
Returns an object containing:
number
: The original input numberisOdd
: A boolean indicating whether the number is probably oddconf
: Confidence score (always 0.5, because we're only 50% sure!)
License
MIT
Contributing
- Fork the repository
- Create a new branch
- Make your changes
- Submit a pull request
PS
This package is a joke.