UNPKG

everyutil

Version:

A comprehensive library of lightweight, reusable utility functions for JavaScript and TypeScript, designed to streamline common programming tasks such as string manipulation, array processing, date handling, and more.

8 lines (7 loc) 235 B
/** * Computes the factorial of a number with BigInt support. * @author @dailker * @param {number|bigint} n - The number. * @returns {bigint} The factorial. */ export declare function factorial(n: number | bigint): bigint;