Territory
Convert a Map to a keyed object like Object.fromEntries
(docs). Based on fromEntries()
ponyfill.
yarn add @charliewilco/territory
import fromEntries from "@charliewilco/territory";
const object = territory(new Map([["one", 1], ["two", 2]]))
// { "one": 1, "two": 2 }