will-auth
Version:
authentication and authorization module
17 lines (16 loc) • 478 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CircularReplacer = void 0;
var CircularReplacer = function () {
var seen = new WeakSet();
return function (key, value) {
if (typeof value === 'object' && value !== null) {
if (seen.has(value)) {
return;
}
seen.add(value);
}
return value;
};
};
exports.CircularReplacer = CircularReplacer;