Fix xp des compétences tronc #182
La méthode splice retourne les éléments supprimées, et non pas le tableau après suppression
This commit is contained in:
@ -22,11 +22,11 @@ export class Misc {
|
||||
return (a, b) => a + b;
|
||||
}
|
||||
|
||||
static ascending(orderFunction) {
|
||||
static ascending(orderFunction = x=>x) {
|
||||
return (a, b) => Misc.sortingBy(orderFunction(a), orderFunction(b));
|
||||
}
|
||||
|
||||
static descending(orderFunction) {
|
||||
static descending(orderFunction = x=>x) {
|
||||
return (a, b) => Misc.sortingBy(orderFunction(b), orderFunction(a));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user