psquare
This is a node package that checks if an input is a perfect square and returns true or false
How to use
npm install --save psquare
include in your script as:
var psquare = ;
Use as:
// returns true or false// pass the number as argument to the check methodpsquare;
Example would be:
var psquare = ; // Check if a number is a perfect square or not, returns true or falseif psquare console