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.

10 lines (9 loc) 236 B
/** * Deterministic shuffle based on a seed. * @author @dailker * @template T * @param {T[]} array * @param {number} [seed=1] * @returns {T[]} */ export declare function shuffleStable<T>(array: T[], seed?: number): T[];