# utils **Repository Path**: wsvaio/utils ## Basic Information - **Project Name**: utils - **Description**: 常用工具函数整合 - **Primary Language**: TypeScript - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-03-12 - **Last Updated**: 2023-03-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 常用utils - compressPicture: 图片压缩 - createEventBus: 创建一个事件总线 - debounce: 防抖 - throttle: 节流 - exitFullscreen: 退出全屏 - filePicker: 选择文件 - dateFormat: 日期格式化 - timeFormat: 时间格式化 - merge: 合并对象 - omit: 选择对象属性,组合没有选择的返回 - pick: 选择对象属性,组合并返回 - Progress: 头部进度条 - readAs: 读取文件 - saveAs: 保存文件 - download: 保存文件 - sleep: 睡眠 - to: 返回promise的正确和错误结果的组合 - toTypeString:返回参数的类型 [object xxx] - toRawString:返回参数的类型,只返回类型部分 [object xxx] - xxx - is:判断数据类型 - trying: 以promise运行传入的参数函数