Skip to content

This is a node package that checks if an input is a perfect square

License

Notifications You must be signed in to change notification settings

ghostffcode/psquare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 = require('psquare');

Use as:

// returns true or false
// pass the number as argument to the check method
psquare.check(49);

Example would be:

var psquare = require('psquare');

// Check if a number is a perfect square or not, returns true or false
if (psquare.check(49)) {
 console.log("Is perfect square")
}

About

This is a node package that checks if an input is a perfect square

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published