number
must be finite number (and type 'number').
getSquareRoot(4);
// --> 2
getSquareRoot(64);
// --> 8
getSquareRoot(10);
// --> 3.1622776601683795
getSquareRoot(Infinity);
// Error: 'Input must be a finite number'
getSquareRoot("64"); // input cannot be type 'string'
// Error: 'Input must be a finite number'
npm i @writetome51/get-square-root
import { getSquareRoot } from '@writetome51/get-square-root';