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 7bfdc80 commit 1447f86Copy full SHA for 1447f86
src/04-optional-params.problem.ts
@@ -1,6 +1,6 @@
1
import { expect, it } from "vitest";
2
3
-export const getName = (first: string, last: string) => {
+export const getName = (first: string, last?: string) => {
4
if (last) {
5
return `${first} ${last}`;
6
}
0 commit comments