UNPKG

@thi.ng/transducers

Version:

Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations

13 lines 530 B
import type { IObjectOf } from "@thi.ng/api"; /** * Higher order helper function for {@link rename} transducer. Takes an object * of key mappings and returns function applying these mapping/renames. * * @remarks * Keys in `kmap` are the new/renamed keys, their values the original names. For * keys which simply should be kept, but not renamed, set their value to `true`. * * @param kmap - */ export declare const renamer: (kmap: IObjectOf<PropertyKey | boolean>) => (x: any) => any; //# sourceMappingURL=renamer.d.ts.map