parcoursup/node_modules/wildcard/examples/arrays.js
lalBi94 7bc56c09b5 $
2023-03-05 13:23:23 +01:00

11 lines
163 B
JavaScript

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']