declarative-js
Version:
_declarative-js_ is modern JavaScript library, that helps to: - tackle array transformation with built in JavaScript array api (e.g. `array.filter(toBe.unique())`), - provide a type-level solution for representing optional values instead of null referen
5 lines (4 loc) • 394 B
TypeScript
import { Getter } from '../types';
import { MethodMap } from '../map/MethodMap';
export declare const toMapKeyMap: <T>(getKey: Getter<T, string>) => (agr: MethodMap<T>, value: T, index: number, array: T[]) => MethodMap<T>;
export declare const toMapAndValue: <T, R>(getKey: Getter<T, string>, getValue: Getter<T, R>) => (agr: MethodMap<R>, value: T, index: number, array: T[]) => MethodMap<R>;