UNPKG

@princedev/calculate

Version:

Fast, lightweight, and extinsible mathematical and statistical functions.

18 lines (17 loc) 349 B
/** * @name square * @summary Returns the square of a number. * * @description Returns the square of a number. * * @example * // Normal usage * let result = sqaure(4); * // => 16 * * @param {numberr} a number to be squared. * @returns {number} * * @function pure */ export default function square(a: number): number;