Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 1.0.1 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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc