Function: factorial()
factorial(
n):number
Defined in: functions/factorial.ts:10
Returns the factorial of the given integer.
Parameters
n
number
The integer to get the factorial of.
Returns
number
The factorial.
Example
factorial(5); // 120
factorial(
n):number
Defined in: functions/factorial.ts:10
Returns the factorial of the given integer.
number
The integer to get the factorial of.
number
The factorial.
factorial(5); // 120