Passed
Pull Request — master (#252)
by
unknown
02:05
created

array.js ➔ range   A

Complexity

Conditions 2

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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