Skip to content

通用类型判断与空值校验工具,覆盖数字、字符串、布尔、对象、数组、函数、null / undefined 等基础场景。

API 概览

API说明
beParsedAsNumber将值按数字解析
canBeParsedAsNumber判断值是否可解析为数字
checkArrayEmpty判断数组是否为空
checkEmpty判断值是否为空
checkEmptyNotZero判断值是否为空但保留数字 0
checkObjectEmpty判断对象是否为空
isArray判断数组
isBoolean判断布尔值
isFunction判断函数
isNullOrUndefined判断 nullundefined
isNumber判断数字
isObject判断对象
isString判断字符串
isUndefined判断 undefined