shahoob/functionKit

View on GitHub
src/greeter.ts

Summary

Maintainability
A
0 mins
Test Coverage
export function greet(name: string, customGreeting?: string): string {
  if (customGreeting) {
    return `${customGreeting} ${name}`;
  } else {
    return `Hello ${name}`;
  }
}