Skip to content

Commit 4af0b50

Browse files
created a generic function
1 parent 629e4c9 commit 4af0b50

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app.ts

+5
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,8 @@ buttonElement.addEventListener('click', () => {
9494
printResult(result, OutputMode.CONSOLE);
9595
printResult(result, OutputMode.ALERT);
9696
});
97+
98+
function logAndEcho<T>(val: T) {
99+
console.log(val);
100+
return val;
101+
}

0 commit comments

Comments
 (0)