mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00: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);
|
||||
}
|
||||
@@ -3,5 +3,5 @@
|
||||
export * from "./base64"
|
||||
export * from "./camelCase"
|
||||
export * from "./splitArray"
|
||||
export * from "./randomFileName"
|
||||
export * from "./getRandId"
|
||||
export * from "./cloneJson"
|
||||
Reference in new issue
Block a user