Skip to content

Commit c6075cb

Browse files
committed
sub .length for .length > 0 for clarity
1 parent b1892ce commit c6075cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/cartesian/category_order_defaults.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = function handleCategoryOrderDefaults(containerIn, containerOut,
1515
var arrayIn = containerIn.categoryarray,
1616
orderDefault;
1717

18-
var isValidArray = (Array.isArray(arrayIn) && arrayIn.length);
18+
var isValidArray = (Array.isArray(arrayIn) && arrayIn.length > 0);
1919

2020
// override default 'categoryorder' value when non-empty array is supplied
2121
if(isValidArray) orderDefault = 'array';

0 commit comments

Comments
 (0)