UNPKG

@safejs/serializer

Version:

Serializer is a superset of JSON that includes recursive objects, dates, regular expressions, functions and others which you also can expand by yourself

9 lines 415 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.symbolSerializer = void 0; exports.symbolSerializer = { determine: (v) => typeof v === "symbol", serialize: (v) => (typeof v.description === "string" ? v.description : null), deserialize: (description) => (typeof description === "string" ? Symbol(description) : Symbol()), }; //# sourceMappingURL=symbol.js.map