UNPKG

com-tools

Version:

com-tools 提供了一些通用的工具函数;

67 lines (31 loc) 770 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [com-tools](./com-tools.md) &gt; [includesPatterns](./com-tools.includespatterns.md) ## includesPatterns() function 判断 includes 中是否存匹配 str 的模式 **Signature:** ```typescript export declare function includesPatterns(str: string, includes: (string | 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> (string \| RegExp)\[\] </td><td> </td></tr> </tbody></table> **Returns:** boolean