type-tls
Version:
type-tls 封装了与类型相关的工具,比如:获取数据的类型 或 类型名字、判断数据的类型 等
54 lines (26 loc) • 646 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [type-tls](./type-tls.md) > [isIdentifier](./type-tls.isidentifier.md)
## isIdentifier() function
判断 code 是否是有校的 js 标识符
**Signature:**
```typescript
export declare function isIdentifier(code: string): boolean;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
code
</td><td>
string
</td><td>
标识符的字符串
</td></tr>
</tbody></table>
**Returns:**
boolean