@hgargg-0710/one
Version:
A tiny npm library purposed for providing beautiful solutions to frequent miniature (one-line/one-expression) tasks for various JS datatypes.
10 lines (9 loc) • 326 B
TypeScript
import { Pair } from "../array/array.js";
/**
* Returns the pair of arrays of keys and values of the given `Map`
*/
export declare const kv: (map: Map<any, any>) => Pair<any[]>;
/**
* Returns the new `Map` built from the key-value pairs passed
*/
export declare const dekv: ([keys, values]: Pair<any[]>) => Map<any, any>;