Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'web/assets/js/util/common.js')
-rw-r--r--web/assets/js/util/common.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/web/assets/js/util/common.js b/web/assets/js/util/common.js
index 808b1ba9..a695f081 100644
--- a/web/assets/js/util/common.js
+++ b/web/assets/js/util/common.js
@@ -90,3 +90,12 @@ function setCookie(cname, cvalue, exdays) {
let expires = 'expires=' + d.toUTCString();
document.cookie = cname + '=' + cvalue + ';' + expires + ';path=/';
}
+
+function doAllItemsExist(array1, array2) {
+ for (let i = 0; i < array1.length; i++) {
+ if (!array2.includes(array1[i])) {
+ return false;
+ }
+ }
+ return true;
+} \ No newline at end of file