34 lines
631 B
TypeScript
34 lines
631 B
TypeScript
/**
|
|
* 判断对象是否为空
|
|
*
|
|
* @param obj
|
|
* isEmpty(null)
|
|
* // => true
|
|
*
|
|
* isEmpty(undefined)
|
|
* // => true
|
|
*
|
|
* isEmpty("")
|
|
* // => true
|
|
*
|
|
* isEmpty(NaN)
|
|
* // => true
|
|
*
|
|
* isEmpty(0)
|
|
* // => false
|
|
*
|
|
* isEmpty([1])
|
|
* // => false
|
|
*
|
|
* isEmpty({name:"123"})
|
|
* // => false
|
|
*/
|
|
export declare const isEmpty: (obj: any) => boolean;
|
|
/**
|
|
* 判断是否有值
|
|
* 这个函数的结果就是对isEmpty取非
|
|
*/
|
|
export declare const isHaveRealValue: (value: any) => boolean;
|
|
export declare const isValidIP: (ip: string) => boolean;
|
|
export declare const isIp: (ip: string) => boolean;
|
|
//# sourceMappingURL=is.d.ts.map
|