NET-Web-API-w-Angular/my-app/node_modules/wildcard/examples/arrays.js

11 lines
163 B
JavaScript
Raw Normal View History

2024-02-09 00:38:41 +00:00
var wildcard = require('..');
var testdata = [
'a.b.c',
'a.b',
'a',
'a.b.d'
];
console.log(wildcard('a.b.*', testdata));
// --> ['a.b.c', 'a.b', 'a.b.d']