@thi.ng/transducers
Version:
Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations
12 lines • 443 B
TypeScript
import type { Comparator } from "@thi.ng/api";
/**
* Syntax sugar for `Object.keys(x).sort()` with support for custom comparator
* (default:
* [`compare`](https://docs.thi.ng/umbrella/compare/functions/compare.html)) and
* yielding iterator of sorted keys.
*
* @param x -
* @param cmp -
*/
export declare function sortedKeys(x: any, cmp?: Comparator<string>): Generator<string, void, unknown>;
//# sourceMappingURL=sorted-keys.d.ts.map