UNPKG

343 BTypeScriptView Raw
1import type { compareFn, mapFn } from './_types';
2/**
3 * Arranges values in an order.
4 * @param x an array
5 * @param fc compare function (a, b)
6 * @param fm map function (v, i, x)
7 */
8declare function bubbleSort<T, U = T>(x: T[], fc?: compareFn<T | U>, fm?: mapFn<T, T | U>): T[];
9export default bubbleSort;
10//# sourceMappingURL=index.d.ts.map
\No newline at end of file