0.1.3 • Published 6 years ago
number-isperfectsquare v0.1.3
number-isperfectsquare
NOTE: number-isperfectsquare was renamed to @extra-number/is-perfectsquare.
Check if number is perfect square.
const isPerfectSquare = require('number-isperfectsquare');
// isPerfectSquare(<number>)
isPerfectSquare(16);
// true
isPerfectSquare(8);
// false
isPerfectSquare(0);
// true
isPerfectSquare(-4);
// false