mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Show abilities of all forms
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user