From 392642751f28b0917bd9d01c6b9452e511e80717 Mon Sep 17 00:00:00 2001 From: Christoph Diehl Date: Sun, 23 Apr 2017 00:02:26 +0300 Subject: [PATCH] [random.js] remove redundancy --- random/random.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/random/random.js b/random/random.js index 9d089c1..dede6aa 100644 --- a/random/random.js +++ b/random/random.js @@ -122,8 +122,7 @@ var random = { return this.bool() ? obj : ""; }, shuffle: function (arr) { - let len = arr.length; - let i = len; + let i = arr.length; while (i--) { let p = this.number(i + 1); let t = arr[i];