Cool pad thing

This commit is contained in:
Daniel Odendahl Jr
2017-10-13 20:41:05 +00:00
parent 19482a1a47
commit 1a377f55b5
5 changed files with 13 additions and 13 deletions
+4
View File
@@ -56,6 +56,10 @@ class Util {
format: () => `${hrs < 10 ? `0${hrs}` : hrs}:${min < 10 ? `0${min}` : min}:${sec < 10 ? `0${sec}` : sec}`
};
}
static pad(text, prefix) {
return `${prefix.slice(text.length)}${text}`;
}
}
module.exports = Util;