get-square

returns the square of the given number

Usage no npm install needed!

<script type="module">
  import getSquare from 'https://cdn.skypack.dev/get-square';
</script>

README

square

Returns the square of the given number. If parameter is not a number then it returns 1

Installing

npm install get-square

How to use

const square = require('get-square');

const result = square(9)