rename doAllItemsExist function

This commit is contained in:
Hamidreza Ghavami
2023-05-16 02:20:53 +04:30
parent 1f5a785806
commit a0a4d7571d
2 changed files with 70 additions and 63 deletions

View File

@@ -106,7 +106,7 @@ function usageColor(data, threshold, total) {
}
}
function areAllItemsExist(array1, array2) {
function doAllItemsExist(array1, array2) {
for (let i = 0; i < array1.length; i++) {
if (!array2.includes(array1[i])) {
return false;