UNPKG

shelving

Version:

Toolkit for using data in JavaScript.

5 lines (4 loc) 264 B
/** Hash a string into an idempotent number. */ export declare function hashString(str: string): number; /** Hash a string into an idempotent number between two values. */ export declare function hashStringBetween(str: string, min?: number, max?: number): number;