Home > @dinofe/xt-core > isFormData
# isFormData() function
是否为 FormData (opens new window) 对象
Signature:
export declare function isFormData(a: any): boolean;
# Parameters
Parameter | Type | Description |
---|---|---|
a | any | 待校验的数据 |
Returns:
boolean
判断结果
# Example
import { isFromData } from '@dinofe/xt-core/common'
isFromData({}) // false