summaryrefslogtreecommitdiff
path: root/js/src/Ice/ArrayUtil.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/Ice/ArrayUtil.js')
-rw-r--r--js/src/Ice/ArrayUtil.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/Ice/ArrayUtil.js b/js/src/Ice/ArrayUtil.js
index fe618398139..162a2d74913 100644
--- a/js/src/Ice/ArrayUtil.js
+++ b/js/src/Ice/ArrayUtil.js
@@ -77,8 +77,8 @@ class ArrayUtil
{
for(let i = arr.length; i > 1; --i)
{
- let e = arr[i - 1];
- let rand = Math.floor(Math.random() * i);
+ const e = arr[i - 1];
+ const rand = Math.floor(Math.random() * i);
arr[i - 1] = arr[rand];
arr[rand] = e;
}