index.js 212 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 var compile = require('./compiler') var filter = require('./filter') function mask (obj, mask) { return filter(obj, compile(mask)) || null } mask.compile = compile mask.filter = filter module.exports = mask