Add some Language Tools

This commit is contained in:
2018-06-05 21:17:53 +10:00
parent 2c787d98ce
commit f63195c453

View File

@ -74,3 +74,13 @@ class Language {
const lang = new Language(); const lang = new Language();
export default lang; export default lang;
const LanguageTools = {
random: function(someArray) {
return someArray[Math.floor(Math.random() * someArray.length)];
}
}
export {
LanguageTools
}