1.1.1 • Published 7 years ago

@extra-number/is-perfect-square v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

Check if number is perfect square.

const isPerfectSquare = require('@extra-number/is-perfect-square');
// isPerfectSquare(<number>)

isPerfectSquare(16);
// true
isPerfectSquare(8);
// false
isPerfectSquare(0);
// true
isPerfectSquare(-4);
// false