@charliewilco/territory
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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 }

Readme

Keywords

none

Package Sidebar

Install

npm i @charliewilco/territory

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

2.33 kB

Total Files

8

Last publish

Collaborators

  • charlespeters