iking-utils
v1.2.15
Published
金合前端工具库
Downloads
80
Readme
金合前端 - 常用方法
TS
npm i iking-utils
- 或
pnpm add iking-utils
- 或
yarn add iking-utils
- 密码强度校验
import { passwordValid } from 'iking-utils'
- 密码加密传输
import { passwordEncry } from 'iking-utils'
- 类型判断
import { is } from 'iking-utils'
is: {
isDef: (val: any) => boolean
isUnDef: (val: any) => boolean
isObject: (val: any) => boolean
isEmpty: (val: any) => boolean
isDate: (val: any) => boolean
isNull: (val: any) => boolean
isNullAndUnDef: (val: any) => boolean
isNullOrUnDef: (val: any) => boolean
isNumber: (val: any) => boolean
isPromise: (val: any) => boolean
isString: (val: any) => boolean
isFunction: (val: any) => boolean
isBoolean: (val: any) => boolean
isRegExp: (val: any) => boolean
isArray: (val: any) => boolean
isWindow: (val: any) => boolean
isElement: (val: any) => boolean
isMap: (val: any) => boolean
isServer: (val: any) => boolean
isClient: (val: any) => boolean
isUrl: (val: any) => boolean
}