Skip to main content

matchesGlob

method default.PlatformPath.matchesGlob
Jump to headingPlatformPath.matchesGlob(
path: string,
pattern: string,
): boolean

The path.matchesGlob() method determines if path matches the pattern.

Parameters Jump to heading

Jump to headingpath: string

The path to glob-match against.

Jump to headingpattern: string

The glob to check the path against.

Return Type Jump to heading

boolean

Whether or not the path matched the pattern.

TypeError

if path or pattern are not strings.

Back to top