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) • 310 B
TypeScript
/**
* Generates a stable hash from a number, optionally using a seed.
* @author @dailker
* @param {number} n - The number to hash.
* @param {number} [seed=0] - Optional seed for hashing.
* @returns {number} The hash value.
*/
export declare function hashNumber(n: number, seed?: number): number;