This commit is contained in:
Daniel Odendahl Jr
2018-04-17 13:13:07 +00:00
parent 4e121af3e3
commit 13a2ea85c0
3 changed files with 9 additions and 11 deletions
-5
View File
@@ -29,11 +29,6 @@ class Util {
return text.length > maxLen ? `${text.substr(0, maxLen - 3)}...` : text;
}
static filterPkmn(arr) {
const filtered = arr.filter(entry => entry.language.name === 'en');
return filtered[Math.floor(Math.random() * filtered.length)];
}
static duration(ms) {
const sec = Math.floor((ms / 1000) % 60).toString();
const min = Math.floor((ms / (1000 * 60)) % 60).toString();