summaryrefslogtreecommitdiff
path: root/resources/js/helpers.js
diff options
context:
space:
mode:
Diffstat (limited to 'resources/js/helpers.js')
-rw-r--r--resources/js/helpers.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/resources/js/helpers.js b/resources/js/helpers.js
index 019f822..1622eb2 100644
--- a/resources/js/helpers.js
+++ b/resources/js/helpers.js
@@ -43,3 +43,10 @@ function mixColors(...colors) {
return `rgb(${r}, ${g}, ${b})`;
}
+
+/**
+ * @returns {string}
+ */
+function randomString () {
+ return (Math.random() + 1).toString(36).substring(2);
+}