From ced2289bef53fcd2cc272617e27bcc6e01799152 Mon Sep 17 00:00:00 2001 From: YukaUU Date: Tue, 16 Jul 2024 01:50:11 +0900 Subject: [PATCH] add comment --- apps/viewer/init.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/viewer/init.js b/apps/viewer/init.js index bf8dffba9..0ed5f42a8 100644 --- a/apps/viewer/init.js +++ b/apps/viewer/init.js @@ -1634,10 +1634,10 @@ function roundToSecondDecimalPlace(num) { } function countOccurrences(arr) { - // カウント用のオブジェクトを作成 + // Create objects for counting let countMap = {}; - // 配列内の各要素をカウント + // Count each element in the array arr.forEach(function(value) { if (countMap[value] === undefined) { countMap[value] = 1; @@ -1646,7 +1646,7 @@ function countOccurrences(arr) { } }); - // 結果を2次元配列に変換 + // Convert the result to a 2-dimensional array let result = []; for (let key in countMap) { if (countMap.hasOwnProperty(key)) {