Passed
Push — master ( a70361...f8fe99 )
by Zhenyu
01:24
created

src/decorators/composer/reserve-name-compose.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 10
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 6
mnd 0
bc 0
fnc 2
dl 0
loc 10
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
1
import compose from 'compose-function';
2
3
import reserveName from './reserve-name';
4
5
const reserveNameCompose = (...args) => {
6
  const enhancedArgs = args.map(arg => reserveName(arg));
7
  return compose(...enhancedArgs);
8
};
9
10
export default reserveNameCompose;
11