@deepjs/is
v0.2.9
Published
check type
Downloads
19
Readme
is 判断
独立包,无依赖,语义化,使用简单
功能列表
- hasOwn
- isUnDef
- isDef
- isNumber
- isInteger
- isString
- isArray
- isObject
- isEmptyObject
- isFunction
- alias: isFn
- isEmptyObject
- isPromise
- looseEqual
- alias: isEqual
- 格式校验
- isMobile 检测手机号
使用
import { isUnDef, isObject, isEmptyObject } from '@deepjs/is'
const obj = {};
console.log(isUnDef(obj.name))
console.log(isObject(obj))
console.log(isEmptyObject(obj))