Skip to content

Commit ae1cad9

Browse files
committed
define 0 as not an empty value.
This Util function caused ranges that cross 0 to go haywire by setting the value to the minValue when it hit 0.
1 parent 2c8c8de commit ae1cad9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Utils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const isEmpty = (x) => {
99
return x === "";
1010
}
1111

12+
if (x===0) return false;
1213
if (!x) return true;
1314
if (x === {}) return true;
1415
if (x === []) return true;

0 commit comments

Comments
 (0)