1.0.2 • Published 5 years ago
mask-properties v1.0.2
mask-properties
import { mask } from "mask-properties"
const person = {
name: 'Jim',
birthday: '1962-01-17',
credits: {
actor: [],
writer: []
}
}
mask(person, { name: true, credits: { writer: true } })
// { name: 'Jim', credits: { writer: [] } }