is-triangular
v1.0.0
Published
Test if a number is a triangular number
Downloads
10
Readme
is-triangular
Test if a number is a triangular number
Reference: Fastest method to define whether a number is a triangular number
Install
$ npm install --save is-triangular
Usage
var isTriangular = require('is-triangular');
isTriangular(1);
//=> true
isTriangular(2);
//=> false
isTriangular(3);
//=> true
isTriangular(4);
//=> false
isTriangular(10);
//=> true
License
MIT © Leonardo Borges Avelino