test-action-debian-package/node_modules/fast-redact/example/serialize-false.js

12 lines
233 B
JavaScript
Raw Normal View History

2020-03-26 14:37:35 +00:00
'use strict'
const fastRedact = require('..')
const redact = fastRedact({
paths: ['a'],
serialize: false
})
const o = { a: 1, b: 2 }
console.log(redact(o) === o)
console.log(o)
console.log(redact.restore(o) === o)
console.log(o)