match

Bun

Symbol

Glob.match

match(str: string): boolean

Match the glob against a string

const glob = new Glob("*.{ts,tsx}");
expect(glob.match('foo.ts')).toBeTrue();