UNPKG

@hackylabs/deep-redact

Version:

A fast, safe and configurable zero-dependency library for redacting strings or deeply redacting arrays and objects.

6 lines (5 loc) 150 B
export const _set = (value) => { if (value instanceof Set) return { value: Array.from(value), _transformer: 'set' }; return value; };