Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

map.prototype.tojson

hemanth1.8kMIT0.1.3

ES7 polyfill for map.prototype.tojson

map, es7, polyfill, prolyfill

readme

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