Show abilities of all forms

This commit is contained in:
Dragon Fire
2020-12-03 13:06:26 -05:00
parent 091e5da53e
commit 299ed8cd5f
5 changed files with 28 additions and 18 deletions
+4
View File
@@ -64,6 +64,10 @@ module.exports = class Util {
return newArr;
}
static arrayEquals(a, b) {
return Array.isArray(a) && Array.isArray(b) && a.length === b.length && a.every((val, i) => val === b[i]);
}
static sortByName(arr, prop) {
return arr.sort((a, b) => {
if (prop) return a[prop].toLowerCase() > b[prop].toLowerCase() ? 1 : -1;