Skip to content

Commit ebeac3e

Browse files
Ahmed RezkAhmed Rezk
authored andcommitted
0-3 solved
1 parent 8e563a0 commit ebeac3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/03-optional-properties.problem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect, it } from "vitest";
22

3-
export const getName = (params: { first: string; last: string }) => {
3+
export const getName = (params: { first: string; last?: string }) => {
44
if (params.last) {
55
return `${params.first} ${params.last}`;
66
}

0 commit comments

Comments
 (0)