feat: funjia工具库v1.0.0版本
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* 判断对象是否为空
|
||||
*
|
||||
* @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
|
||||
Reference in New Issue
Block a user