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