map.prototype.tojson

0.1.3 • Public • Published

map.prototype.tojson Build Status

ES7 map.prototype.tojson polyfill

Install

$ npm install --save map.prototype.tojson

Usage

require('map.prototype.tojson');
var myMap = new Map();
myMap.set(NaN, "not a number");
 
console.log(myMap.toJSON()); // {"NaN":"not a number"}

License

MIT © hemanth

Package Sidebar

Install

npm i map.prototype.tojson

Weekly Downloads

2,347

Version

0.1.3

License

MIT

Last publish

Collaborators

  • hemanth