is-pentagonal
Fastest way to check if a number is pentagonal.
Install
npm install is-pentagonal
var isPentagonal = ;
Usage
console; // trueconsole; // trueconsole; // trueconsole; // trueconsole; // trueconsole; // trueconsole; // trueconsole; // trueconsole; // trueconsole; // true
console; // falseconsole; // falseconsole; // falseconsole; // false
Tests
To run the test suite, first install the dependencies, then run npm test
:
$ npm install
$ npm test