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
corona_tracker.getInfections('All').then(r=>{
console.log(r);
}).catch(e=>{
console.log(e);
});