@charliewilco/territory
v0.0.1
Published
Convert a Map to a keyed object like `Object.fromEntries` ([docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries)). Based on [`fromEntries()` ponyfill](https://github.com/feross/fromentries).
Downloads
1
Readme
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 }