com-tools
Version:
com-tools 提供了一些通用的工具函数;
67 lines (31 loc) • 743 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [com-tools](./com-tools.md) > [includesRegExps](./com-tools.includesregexps.md)
## includesRegExps() function
判断 includes 中是否存匹配 str 的正则
**Signature:**
```typescript
export declare function includesRegExps(str: string, includes: RegExp[]): boolean;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
str
</td><td>
string
</td><td>
</td></tr>
<tr><td>
includes
</td><td>
RegExp\[\]
</td><td>
</td></tr>
</tbody></table>
**Returns:**
boolean