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) 298 B
/** * Checks if a number is a Kaprekar number. * For example, 45^2 = 2025, and 20 + 25 = 45. * @author @dailker * @param {number} n - The number to check. * @returns {boolean} True if n is a Kaprekar number, false otherwise. */ export declare function isKaprekar(n: number): boolean;