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.

9 lines (8 loc) 269 B
/** * Sums the digits of a number in an arbitrary base. * @author @dailker * @param {number} n - The number. * @param {number} base - The base. * @returns {number} Sum of digits. */ export declare function digitSumInBase(n: number, base: number): number;