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.
1 parent 5894e03 commit 6cb178fCopy full SHA for 6cb178f
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++) {
@@ -644,4 +644,4 @@ class Utils {
644
645
}
646
647
-exports.Utils = Utils;
+exports.Utils = Utils;
0 commit comments