set.prototype.tojson 
ES7 polyfill for set.prototype.toJSON()
Install
$ npm install --save set.prototype.tojson
Usage
require('set.prototype.tojson');
var mySet = new Set();
mySet.add(NaN);
mySet.add(1);
console.log(mySet.toJSON())
License
MIT © hemanth