source:
trip-planner-front/node_modules/wildcard/examples/objects.js@
eed0bf8
Last change on this file since eed0bf8 was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 179 bytes |
Rev | Line | |
---|---|---|
[6a3a178] | 1 | var wildcard = require('..'); |
2 | var testdata = { | |
3 | 'a.b.c' : {}, | |
4 | 'a.b' : {}, | |
5 | 'a' : {}, | |
6 | 'a.b.d' : {} | |
7 | }; | |
8 | ||
9 | console.log(wildcard('a.*.c', testdata)); | |
10 | // --> { 'a.b.c': {} } |
Note:
See TracBrowser
for help on using the repository browser.