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 8e563a0 commit ebeac3eCopy full SHA for ebeac3e
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