matheus-rodrigues00 / utils

✨ Library to commonly used cross-projects utilities methods ✨
17 stars 11 forks source link

Create calculations.ts #23

Closed matheus-rodrigues00 closed 1 year ago

matheus-rodrigues00 commented 1 year ago

The calculation.ts module will be responsible for housing calculation methods. Initially, we need to implement two methods: discountOnPrice and discountedPrice. These methods will take in two parameters, the price and the discount, and return the corresponding values.

Additionally, please include test implementations for these methods to ensure their correctness and reliability.