UNPKG

lgrthms

Version:

Algorithms and data structures for your JavaScript and TypeScript projects 🧑‍💻

3 lines (2 loc) 200 B
export declare function radixSort(array: number[], direction: 'asc' | 'desc'): number[]; export declare function radixSort<T>(array: T[], direction: 'asc' | 'desc', get: (element: T) => number): T[];