stores sync fixes, refactoring

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2020-07-14 19:36:18 +03:00
1 parent b8eaa657a2
commit a305b04292
14 files changed
+91 -81

No files matched your search

@@ -1,6 +1,6 @@
// Create random filename
// Create random system name
export function randomFileName({ prefix = "", suffix = "", sep = "__" } = {}) {
export function getRandId({ prefix = "", suffix = "", sep = "_" } = {}) {
const randId = () => Math.random().toString(16).substr(2);
return [prefix, randId(), suffix].filter(s => s).join(sep);
}
+1 -1
View File
@@ -3,5 +3,5 @@
export * from "./base64"
export * from "./camelCase"
export * from "./splitArray"
export * from "./randomFileName"
export * from "./getRandId"
export * from "./cloneJson"