Files
vercel_dashboard_example/.pnpm-store/v11/files/9f/94e3607f7014953a368445ccbcef647d737a2a6e88a31509282839a3911c9104f70eaa4472ea960f9b4571a3cd610c43d06b2078bfbc445d319e7cbdd90c80
T
2026-05-12 14:53:15 +00:00

11 lines
352 B
Plaintext

// https://github.com/DavidBruant/Map-Set.prototype.toJSON
var forOf = require('./$.for-of')
, classof = require('./$.classof');
module.exports = function(NAME){
return function toJSON(){
if(classof(this) != NAME)throw TypeError(NAME + "#toJSON isn't generic");
var arr = [];
forOf(this, false, arr.push, arr);
return arr;
};
};