randomcryp
Version:
A cryptographically secure, feature rich, zero dependency and browser friendly random number generator library.
11 lines (10 loc) • 378 B
TypeScript
/**
* Returns a new string containing the characters of the input string in a shuffled order.
*/
declare function shuffle(input: string): string;
/**
* Returns a new array containing the elements of the input array in a shuffled order.
*/
declare function shuffle<E>(input: E[]): E[];
declare function shuffle<E>(input: ArrayLike<E> | Iterable<E>): E[];
export { shuffle };