iking-math
v1.0.0
Published
金合前端Math计算库,基于Mathjs,主要用于固定版本保证安全以及在此之上扩展方法
Downloads
13
Readme
金合前端 - 常用方法
TS
npm i iking-math
- 或
pnpm add iking-math
- 或
yarn add iking-math
- 密码强度校验
import { passwordValid } from 'iking-math'
- 密码加密传输
import { passwordEncry } from 'iking-math'
- 类型判断
import { is } from 'iking-math'
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
}