1.0.0 • Published 4 years ago

convert-to-map v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Object to Map converter

Description

A simple converter that deep converts your JavaScript Object into Map. That means that if any property anywhere in your object is also an object, it will be also converted into map.

Reasons why using Map is better than using Objects can be found in this Medium post.

Usage

const convertToMap = require("convert-to-map");
const val = {...}
const asMap = convertToMap(val);

Note:

If you pass non-object value, function throws an error.

1.0.0

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.1.1

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.0

4 years ago