Skip to content

Commit f65f7c9

Browse files
committed
default argument
1 parent 33357df commit f65f7c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/transforms/bin.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,7 @@ function maybeBin(options) {
171171
return bin;
172172
}
173173

174-
function maybeThresholds(thresholds) {
175-
if (thresholds === undefined) return thresholdDefault;
174+
function maybeThresholds(thresholds = thresholdDefault) {
176175
if (typeof thresholds === "string") {
177176
switch (thresholds.toLowerCase()) {
178177
case "freedman-diaconis": return thresholdFreedmanDiaconis;

0 commit comments

Comments
 (0)