@deot/helper-utils
v1.1.5
Published
```js import * as Utils from '@deot/helper-utils'; ```
Downloads
37
Readme
@deot/helper-utils
Utils
import * as Utils from '@deot/helper-utils';// or
import { Utils } from '@deot/helper';| 方法 | 说明 |
| ------------------------------------------------------------------ | ------------------------------ |
| asterisk | 文字加* |
| autoCatch | 捕获异常 |
| canvasToImage | 转图片信息 |
| cloneDeepEasier | 深拷贝 |
| compressImage | 压缩图片 |
| dataURLToFile | base64转文件 |
| debounce | 防抖 |
| def | 定义 |
| flattenDecodeURIComponent | 深度解码 |
| flattenJSONParse | 深度反序列化 |
| getPropByPath | 根据路径找值 |
| getUid | 生成唯一id |
| hasOwn | 是否在原型上 |
| numberToUnit | 大数据转成中文单位 |
| preZero | 加零 |
| raf | raf |
| random | range 和 probs |
| sleep | 等待 |
| throttle | 节流 |
| genterateString | 随机生成指定长度的字符串 |
| toPromise | 让返回对象可操作且能直接使用await instance |
