A utility library named utils-calculator that provides a Calculator class with various calculation methods and caching functionality. This library simplifies complex calculations and enhances performance by efficiently managing calculation caches.

1 stars 0 forks 1 watchers TypeScript Apache License 2.0
1 Open Issue Need Help Last updated: Sep 10, 2025

Open Issues Need Help

View All on GitHub

AI Summary: This GitHub issue identifies a problem in a test case where `subtractMultiple` method is not correctly utilizing the `sum` method's cache. The `subtractMultiple` method currently uses `reduce` internally instead of calling `sum`, leading to only one cache entry being generated when two are expected. The proposed solution is to refactor `subtractMultiple` to reuse the `sum` method for its internal summation, ensuring proper cache interaction.

Complexity: 2/5
bug good first issue

A utility library named utils-calculator that provides a Calculator class with various calculation methods and caching functionality. This library simplifies complex calculations and enhances performance by efficiently managing calculation caches.

TypeScript