Passed
Push — master ( 1201cf...ce6d06 )
by Zhenyu
01:08
created

src/utils.ts   A

Complexity

Total Complexity 1
Complexity/F 0

Size

Lines of Code 15
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
mnd 1
bc 1
fnc 0
dl 0
loc 15
rs 10
bpm 0
cpm 0
noi 0
c 0
b 0
f 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