Set Trailing Cmma to (#525)

This commit is contained in:
Lipis
2020-01-24 12:04:54 +02:00
committed by GitHub
parent 25202aec11
commit ee68af0fd3
53 changed files with 352 additions and 350 deletions

View File

@ -23,7 +23,7 @@ export function moveOneLeft<T>(elements: T[], indicesToMove: number[]) {
export function moveOneRight<T>(elements: T[], indicesToMove: number[]) {
const reversedIndicesToMove = indicesToMove.sort(
(a: number, b: number) => b - a
(a: number, b: number) => b - a,
);
let isSorted = true;
@ -166,7 +166,7 @@ export function moveAllLeft<T>(elements: T[], indicesToMove: number[]) {
// And we are done!
export function moveAllRight<T>(elements: T[], indicesToMove: number[]) {
const reversedIndicesToMove = indicesToMove.sort(
(a: number, b: number) => b - a
(a: number, b: number) => b - a,
);
// Copy the elements to move