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 33357df commit f65f7c9Copy full SHA for f65f7c9
src/transforms/bin.js
@@ -171,8 +171,7 @@ function maybeBin(options) {
171
return bin;
172
}
173
174
-function maybeThresholds(thresholds) {
175
- if (thresholds === undefined) return thresholdDefault;
+function maybeThresholds(thresholds = thresholdDefault) {
176
if (typeof thresholds === "string") {
177
switch (thresholds.toLowerCase()) {
178
case "freedman-diaconis": return thresholdFreedmanDiaconis;
0 commit comments