Skip to content

Commit d6fa3de

Browse files
authored
Merge pull request #80 from hodovani/patch-4
Remove extra argument
2 parents f63f78e + 6cb178f commit d6fa3de

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++) {
@@ -649,4 +649,4 @@ class Utils {
649649

650650
}
651651

652-
exports.Utils = Utils;
652+
exports.Utils = Utils;

0 commit comments

Comments
 (0)