🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

incnum

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

incnum - npm Package Compare versions

Comparing version

to
1.0.2

2

index.js

@@ -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",