auto-tools
v0.2.1
Published
常用函数的封装使用
Downloads
17
Readme
简介
使用 ts
语言对一般常用函数提取封装,并提供了详尽的ts
类型。
使用
yarn add auto-tools 或 npm i auto-tools
import ATTools from "auto-tools" // 全量引入
import { isEmpty, isNotEmpty } from "auto-tools" // 按需引入
库函数 名称索引
isEmpty, isNotEmpty, handleObjNull, isArrayVal, isFuncVal, isAsyncFuncVal, isObjectVal, isStringVal, isBoolVal, isPromiseVal, isNumberVal, postParentMsg, hasChangeData, getStorageVal, getArrObjKVs, list2ObjAttr, list2ObjAttrAB, getPlusPhone, getSubPhone, parseTime, getTimeStamp, findIdxByKey, setRangeNumArr, validateMyForm, getCurrentLang, downloadFile, batchDownload, ExportExlFile, getRandomColor, tranlateTime10, getUTCtime, delRepeat, getCrossArray, getUnionArray, sortArrById, arr2Tree, tree2Arr, list2Map, getRepeatProNum, val2Undefined, generateMenuRoutes, translateMenusField, translateSiderOps, sortRelationship,