function · Browser and Node

# isPattern

Exact, or ending in ".*" or "/*", with no other "\*".

`@toip-tools/mandates` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mandates/src/shape.ts#L25)

Import:

```ts
import { isPattern } from "@toip-tools/mandates";
```

## Declaration

Signature:

```ts
isPattern(p: unknown): p is string;
```

### Parameters

- **`p` (required)**: `unknown`

### Returns

`boolean`

[Usage guide](https://toip.tools/toolkit/mandates/#usage) · [Error handling](https://toip.tools/toolkit/mandates/#errors) · [All exports](https://toip.tools/toolkit/mandates/api/)

---

This is the Markdown version of https://toip.tools/toolkit/mandates/api/isPattern/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
