Add some Language Tools
This commit is contained in:
1 parent
2c787d98ce
commit
f63195c453
1 file changed
+10
@@ -74,3 +74,13 @@ class Language {
|
||||
const lang = new Language();
|
||||
|
||||
export default lang;
|
||||
|
||||
const LanguageTools = {
|
||||
random: function(someArray) {
|
||||
return someArray[Math.floor(Math.random() * someArray.length)];
|
||||
}
|
||||
}
|
||||
|
||||
export {
|
||||
LanguageTools
|
||||
}
|
||||
Reference in new issue
Block a user