padStart instead of Util.pad

This commit is contained in:
Daniel Odendahl Jr
2018-01-28 02:04:04 +00:00
parent d63cfef8a0
commit d58364a3d1
6 changed files with 10 additions and 11 deletions
-4
View File
@@ -43,10 +43,6 @@ class Util {
};
}
static pad(text, prefix) {
return `${prefix.slice(text.length)}${text}`;
}
static randomRange(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}