Comparing version 1.0.1 to 1.0.2
@@ -18,3 +18,3 @@ "use strict"; | ||
function seq(initial, ranges) { | ||
if (ranges.some(x => x === 0)) { | ||
if (!ranges.length || ranges.some(x => x === 0)) { | ||
return []; | ||
@@ -21,0 +21,0 @@ } |
@@ -14,3 +14,3 @@ export function next(current: number[], ranges: number[]) { | ||
export function seq(initial: number[], ranges: number[]) { | ||
if (ranges.some(x => x === 0)) { | ||
if (!ranges.length || ranges.some(x => x === 0)) { | ||
return []; | ||
@@ -17,0 +17,0 @@ } |
{ | ||
"name": "incnum", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "increment numbers in array. this can make multiple depth for-loop single.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
14648