react-avg-calcy
v1.0.1
Published
This is the simple avg calculator
Downloads
24
Readme
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)