UNPKG
always-helper
Version:
latest (0.0.11)
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
前端项目开发中,经常会用到一些工具函数的合集。
github.com/Rabbitzzc/always
Rabbitzzc/always
always-helper
/
types
/
random
/
uuid.d.ts
8 lines
(7 loc)
•
381 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
/** * 生成唯一标识符 uuid - https://stackoverflow.com/questions/105034/how-to-create-guid-uuid * 碰撞率 1/2^^122 * 开源项目比较优秀的是 uuid 库,但是本身压缩以后有 3Kb,而唯一标识一般用来生成图表元素唯一 ID 等,低频操作,没必要引入一个 3Kb 左右的仓库 */
declare
const
uuid
:
() =>
string
;
export
default
uuid;