@extra-array/sort-update
Version:
Arranges values in an order.
13 lines (12 loc) • 397 B
TypeScript
declare module "@extra-array/sort-update" {
import type { compareFn, mapFn } from "./_types";
/**
* Arranges values in an order.
* @param x an array (updated)
* @param fc compare function (a, b)
* @param fm map function (v, i, x)
* @returns x
*/
declare function sort$<T, U = T>(x: T[], fc?: compareFn<T | U>, fm?: mapFn<T, T | U>): T[];
export = sort$;
//# sourceMappingURL=sort$.d.ts.map}