Simplify conditional expressions in reading utilities
Refactored multiple functions to use concise conditional expressions, improving readability and reducing code verbosity. These changes enhance maintainability without altering existing functionality.
7c66e35
2 days ago
by hckhanh
-1%
Refactor `readTens` function for conciseness
Simplified the `readTens` function by replacing nested ternary operators with straightforward conditional statements. This improves readability and maintains the same functionality.
a6581da
2 days ago
by hckhanh
+0.03%
Simplify conditional in `readHundreds` function
Reversed the ternary operator condition to improve code clarity and consistency with other similar functions. This adjustment maintains the original functionality while enhancing readability.
7a3e381
2 days ago
by hckhanh
+0.05%
Refactor `readHundreds` function for clarity and flexibility
Replaced the `hasHundredsPosition` parameter with `groupLength` to improve clarity and make the function more versatile. Updated dependent code to reflect this change and maintain consistent behavior.
55f2b90
2 days ago
by hckhanh
-0.07%
Clarify `hasTensPosition` variable usage in `read` function
Renamed and refactored the variable `len > 1` to `hasTensPosition` for improved readability and intent clarity. Updated its usage across the function to enhance maintainability without changing the existing behavior.
190a848
2 days ago
by hckhanh
+0.11%
Refactor digit group processing for readability
Improved code readability and consistency in functions handling Vietnamese number words. Simplified conditionals, standardized parameter usage, and enhanced formatting to ensure maintainability without altering functionality.
b8bf24e
2 days ago
by hckhanh
+0.05%
Update devDependencies in `package.json` and lockfile
Upgraded several devDependencies including `@biomejs/biome`, `syncpack`, and `tsdown` to the latest versions. This ensures compatibility with the latest features and improvements while maintaining stability. Updated the `pnpm-lock.yaml` to reflect these changes.
f167425
2 days ago
by hckhanh
-0.04%
Refactor group processing conditionals for readability
Replaced a nested ternary operator with explicit conditional statements in `groups.ts`. This enhances code readability and aligns with the consistent structure of similar functions. No functionality was altered.
a22a9d7
2 days ago
by hckhanh
-0.02%
Refactor digit group processing and update dependencies
Improved readability, simplified logic, and standardized parameter handling in functions processing Vietnamese number words. Made minor formatting updates, enhanced code quality, and updated development dependencies in `package.json`.