npm.nicfv.com
    Preparing search index...

    Function factorial

    • Compute the factorial of n.

      Parameters

      • n: number

        Any positive integer

      Returns number

      n!

      const y = SMath.factorial(5); // 120