1.0.0 • Published 3 years ago
is-abundant v1.0.0
Is Abundant
What the package does
This package checks if a certain number is an abundant number or not. For reference of what an abundant number is, you can look here --> https://en.wikipedia.org/wiki/Abundant_number
Usage
First, install the package on your project
npm i is-abundant
Then, require it in your project using whatever constant name you choose
const abundant = require('is-abundant')
To use this package, use the constant function that you declared with a number, and it will return true or false (true means it is an abundant number, false means it is not)
const abundant = require('is-abundant')
console.log(abundant(12)) //returns true
console.log(abundant(64)) //returns false
console.log(abundant(100)) //returns true
console.log(abundant(69)) //returns false
1.0.0
3 years ago