shift73k/assets_old/node_modules/wildcard/examples/objects.js

10 lines
179 B
JavaScript
Executable file

var wildcard = require('..');
var testdata = {
'a.b.c' : {},
'a.b' : {},
'a' : {},
'a.b.d' : {}
};
console.log(wildcard('a.*.c', testdata));
// --> { 'a.b.c': {} }