UNPKG

com-tools

Version:

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

67 lines (31 loc) 749 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [com-tools](./com-tools.md) &gt; [includesStrings](./com-tools.includesstrings.md) ## includesStrings() function 判断 includes 中是否存在 str 包含的字符串 **Signature:** ```typescript export declare function includesStrings(str: string, includes: string[]): 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\[\] </td><td> </td></tr> </tbody></table> **Returns:** boolean