mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
fix: run prettier on all file to avoid prettier issue inside PR
This commit is contained in:
@@ -18,13 +18,13 @@ export class FakeBackendService {
|
||||
getUsers = (active: keyof User, dir: SortDirection, pageIndex: number) =>
|
||||
timer(0, 1000).pipe(
|
||||
take(1),
|
||||
map(() => this.sortByKey(this.users, active, sort[dir]))
|
||||
map(() => this.sortByKey(this.users, active, sort[dir])),
|
||||
);
|
||||
|
||||
private sortByKey(
|
||||
arr: User[],
|
||||
key: keyof User,
|
||||
direction: SortDirectionIndex
|
||||
direction: SortDirectionIndex,
|
||||
): User[] {
|
||||
return arr.sort((a, b) => {
|
||||
const valueA = a[key];
|
||||
|
||||
Reference in New Issue
Block a user