Le 03/10/2012 18:37, Nicholas C. Zakas a écrit : > (...) > > Set.prototype.toJSON = function() { > return Array.from(this); > }; > > That way, JSON.stringify() would do something rational by default when > used with sets. > > Thoughts? Useful defaults. I love it!
David _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss