update
This commit is contained in:
parent
d9becc67b6
commit
9308795b8b
964 changed files with 104265 additions and 16 deletions
11
node_modules/fast-redact/example/intermediate-wildcard-array.js
generated
vendored
Normal file
11
node_modules/fast-redact/example/intermediate-wildcard-array.js
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
'use strict'
|
||||
const fastRedact = require('..')
|
||||
const redact = fastRedact({ paths: ['a[*].c.d'] })
|
||||
const obj = {
|
||||
a: [
|
||||
{ c: { d: 'hide me', e: 'leave me be' } },
|
||||
{ c: { d: 'and me', f: 'I want to live' } },
|
||||
{ c: { d: 'and also I', g: 'I want to run in a stream' } }
|
||||
]
|
||||
}
|
||||
console.log(redact(obj))
|
||||
Loading…
Add table
Add a link
Reference in a new issue