We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a04faf2 commit 7bfdc80Copy full SHA for 7bfdc80
src/03-optional-properties.problem.ts
@@ -1,6 +1,6 @@
1
import { expect, it } from "vitest";
2
3
-export const getName = (params: { first: string; last: string }) => {
+export const getName = (params: { first: string; last?: string }) => {
4
if (params.last) {
5
return `${params.first} ${params.last}`;
6
}
0 commit comments