Global

Methods

getInfections(country) → {Promise}

Parameters:
Name Type Description
country string Country name , can be 'All'
Source:
Returns:
Promise object represents the array of stats
Type
Promise
Example

Example about viewing infextion stats on all countries

   corona_tracker.getInfections('All').then(r=>{
    console.log(r);
   }).catch(e=>{
    console.log(e);
   });