matchesGlob 
  The path.matchesGlob() method determines if path matches the pattern.
Since
v22.5.0
Parameters
path
The path to glob-match against.
pattern
The glob to check the path against.
Throws
{TypeError} if path or pattern are not strings.