We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f63f78e + 6cb178f commit d6fa3deCopy full SHA for d6fa3de
1 file changed
dist/core/utils.js
@@ -54,7 +54,7 @@ class Utils {
54
var n = array.length;
55
if (k < 0 || k > n) throw new RangeError("Sample larger than population or is negative");
56
57
- if (destructive || n <= (k <= 5 ? 21 : 21 + Math.pow(4, Math.ceil(Math.log(k * 3, 4))))) {
+ if (destructive || n <= (k <= 5 ? 21 : 21 + Math.pow(4, Math.ceil(Math.log(k * 3))))) {
58
if (!destructive) array = Array.prototype.slice.call(array);
59
60
for (var i = 0; i < k; i++) {
@@ -649,4 +649,4 @@ class Utils {
649
650
}
651
652
-exports.Utils = Utils;
+exports.Utils = Utils;
0 commit comments