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

7 lines (5 loc) 211 B
import { ConstantExtraSerializer } from "../../types"; export const undefinedSerializer: ConstantExtraSerializer<undefined> = { determine: (v) => v === undefined, deserialize: () => undefined, };