npm.nicfv.com

    Function factorial

    • Compute the factorial of n.

      Parameters

      • n: number

        Any positive integer

      Returns number

      n!

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