This works in typescript v4.1.3(playground) but doesn\'t work in v3.9.7(playground)
const uniqueMap = (items: [key: K, val: V][]) => new Map(it