Skip to content

Commit 6cb178f

Browse files
authored
Remove extra argument
Math.log takes one argument. Arguments starting with the second one will be ignored.
1 parent 5894e03 commit 6cb178f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dist/core/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Utils {
5454
var n = array.length;
5555
if (k < 0 || k > n) throw new RangeError("Sample larger than population or is negative");
5656

57-
if (destructive || n <= (k <= 5 ? 21 : 21 + Math.pow(4, Math.ceil(Math.log(k * 3, 4))))) {
57+
if (destructive || n <= (k <= 5 ? 21 : 21 + Math.pow(4, Math.ceil(Math.log(k * 3))))) {
5858
if (!destructive) array = Array.prototype.slice.call(array);
5959

6060
for (var i = 0; i < k; i++) {
@@ -644,4 +644,4 @@ class Utils {
644644

645645
}
646646

647-
exports.Utils = Utils;
647+
exports.Utils = Utils;

0 commit comments

Comments
 (0)