revert: pipe challenge changes (3)

This commit is contained in:
Sven Brodny
2024-02-16 14:48:56 +01:00
parent f13cd8a954
commit 4da002730b

View File

@@ -14,8 +14,8 @@ import { Component } from '@angular/core';
export class AppComponent { export class AppComponent {
persons = ['toto', 'jack']; persons = ['toto', 'jack'];
// very heavy computation
heavyComputation(name: string, index: number) { heavyComputation(name: string, index: number) {
// very heavy computation
return `${name} - ${index}`; return `${name} - ${index}`;
} }
} }