Appearance
通用类型判断与空值校验工具,覆盖数字、字符串、布尔、对象、数组、函数、null / undefined 等基础场景。
API 概览
| API | 说明 |
|---|---|
beParsedAsNumber | 将值按数字解析 |
canBeParsedAsNumber | 判断值是否可解析为数字 |
checkArrayEmpty | 判断数组是否为空 |
checkEmpty | 判断值是否为空 |
checkEmptyNotZero | 判断值是否为空但保留数字 0 |
checkObjectEmpty | 判断对象是否为空 |
isArray | 判断数组 |
isBoolean | 判断布尔值 |
isFunction | 判断函数 |
isNullOrUndefined | 判断 null 或 undefined |
isNumber | 判断数字 |
isObject | 判断对象 |
isString | 判断字符串 |
isUndefined | 判断 undefined |