/**
 * Deletes a key from a map.
 */ export const deleteFromMap = < Key , Value > ( key ) => ( map ) : Map < Key , Value > => { const copy = new Map ( map ) ; copy . delete ( key ) ; return copy ; } ;