source: trip-planner-front/node_modules/wildcard/examples/arrays.js@ 76712b2

Last change on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 163 bytes
Line 
1var wildcard = require('..');
2var testdata = [
3 'a.b.c',
4 'a.b',
5 'a',
6 'a.b.d'
7];
8
9console.log(wildcard('a.b.*', testdata));
10// --> ['a.b.c', 'a.b', 'a.b.d']
Note: See TracBrowser for help on using the repository browser.