refactor: Replace short hand type conversions with function calls
Prefer using explicit casts by calling `Number`, `Boolean`, or `String` over using operators like `+`, `!!` or `"" +`. This is considered best practice as it improves readability.
This commit is contained in:
1 parent
964b65477c
commit
64e8e85aac
3 files changed
+3
-3
No files matched your search
@@ -60,7 +60,7 @@ const usePrepareGridstack = () => {
|
||||
}, [width]);
|
||||
|
||||
return {
|
||||
isReady: !!mainAreaWidth,
|
||||
isReady: Boolean(mainAreaWidth),
|
||||
mainAreaRef,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user