Function factorial

  • Calculates the factorial of a given integer.

    Returns

    The factorial of n.

    Throws

    An error if n is negative or not an integer.

    Parameters

    • n: number

      The integer to calculate the factorial of.

    Returns number

Generated using TypeDoc