Added option to donate money to faction

This commit is contained in:
Daniel Xie
2017-05-20 03:19:13 -05:00
parent 0054ab7222
commit c454e3729b
4 changed files with 89 additions and 11 deletions
+5
View File
@@ -68,6 +68,11 @@ function isString(str) {
return (typeof str === 'string' || str instanceof String);
}
//Returns true if string contains only digits (meaning it would be a positive number)
function isPositiveNumber(str) {
return /^\d+$/.test(str);
}
//Returns whether an array contains entirely of string objects
function containsAllStrings(arr) {
return arr.every(isString);