Search Docs
Loading...
Skip to content

Function: isGlobPattern

function isGlobPattern(str): str is GlobPattern;

Checks if a string is a glob pattern (contains *).

Parameters#

ParameterTypeDescription
strstringThe string to check

Returns#

str is GlobPattern

True if the string contains a wildcard