If you want to find the factorial of an integer less than 171, then you don't need this module. Otherwise, you do need it:
var factorial = ;;// => 7.257415615307994e+306;// => Infinity;// => RangeError: Maximum call stack size exceeded
be. This module solves this problem by using
RangeError is a problem with how the factorial is calculated. The
recursion used goes so deep that it exceeds the limit that Node.js has. As
described in Reginald's blog post, this problem is solved by using trampolines.
$ npm install big-factorial
var bigFactorial = ;
Returns the factorial of
value as a bigInt, where
value is either a
Number or a String.