1.3.0 • Published 6 years ago
sd-browser-type v1.3.0
type
类型判断
Usage
const type = require('sd-browser-type');
// 是否为String
type.isString()支持的API
| 名称 | 描述 |
|---|---|
| isString | 是否字符串 |
| isNaN | 是否为NaN |
| isNumber | 是否为数字 |
| isNumberic | 是否可以转成数字 |
| isBoolean | 是否为布尔值 |
| isNull | 是否为null |
| isUndefined | 是否为undefined |
| isFunction | 是否为函数 |
| isObject | 是否是对象 |
| isArray | 是否是数组 |
| isEmptyObject | 是否为空对象{} |