Passed
Pull Request — master (#159)
by Mathieu
01:44
created

client/src/utils/array.js   A

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 8
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 2
mnd 1
bc 1
fnc 1
bpm 1
cpm 2
noi 0
1
export const range = function* (start, end, step = 1) {
2
  let i = start;
3
4
  while (i <= end) {
5
    yield i;
6
    i += step;
7
  }
8
};
9