refactor: simplify arrow functions (#12057)
This commit is contained in:

committed by
Chuck Jazdzewski

parent
6f7ed32154
commit
0528dcb9dc
@ -486,8 +486,7 @@ export function main() {
|
||||
|
||||
var trackByItemId = (index: number, item: any): any => item.id;
|
||||
|
||||
var buildItemList =
|
||||
(list: string[]) => { return list.map((val) => { return new ItemWithId(val); }); };
|
||||
var buildItemList = (list: string[]) => list.map((val) => new ItemWithId(val));
|
||||
|
||||
beforeEach(() => { differ = new DefaultIterableDiffer(trackByItemId); });
|
||||
|
||||
|
Reference in New Issue
Block a user