Total Complexity | 1 |
Complexity/F | 0 |
Lines of Code | 15 |
Function Count | 0 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | // @ts-check |
||
2 | |||
3 | /** |
||
4 | * Join two strings with a space. |
||
5 | */ |
||
6 | export const join = (a: string, b: string): string => `${a} ${b}`; |
||
7 | |||
8 | /** |
||
9 | * An example function to show JSDoc works with object destruction in function params. |
||
10 | */ |
||
11 | export const validate = (a: string, b: string): boolean => { |
||
12 | if (typeof a !== 'string' || typeof b !== 'string') return false; |
||
13 | return true; |
||
14 | }; |
||
15 |