@writetome51/get-square-root
Version:
Get the square root of any number! NERDS REJOICE!
30 lines (21 loc) • 533 B
Markdown
`number` must be finite number (and type 'number').
## Examples
```
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`
```js
import { getSquareRoot } from '@writetome51/get-square-root';
```