1.0.1 • Published 1 year ago
react-avg-calcy v1.0.1
Make avg from react-avg-calcy
This is the simple average calculator made by me, here is the way how to use it.
Add to your project
You can just install it by using the command
npm i react-avg-calcy
How to use
Need to import in your application
import avgCalcy from 'react-avg-calcy'
Need to provide total number and achieved number as a parameter
let avg = avgCalcy(100,20) // it returns 20 (in the form of percentage)