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) 168 B
export const _map = (value) => { if (value instanceof Map) return { value: Object.fromEntries(value.entries()), _transformer: 'map' }; return value; };