Socket
Socket
Sign inDemoInstall

async-each-series

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-each-series - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

7

index.js

@@ -1,5 +0,4 @@

module.exports = function (arr, iterator, callback) {
callback = callback || function () {};
if (!arr.length) {
if (!Array.isArray(arr) || !arr.length) {
return callback();

@@ -15,4 +14,4 @@ }

else {
completed += 1;
if (completed >= arr.length) { callback(null); }
++completed;
if (completed >= arr.length) { callback(); }
else { iterate(); }

@@ -19,0 +18,0 @@ }

{
"name": "async-each-series",
"version": "0.0.1",
"version": "0.1.0",
"description": "Apply an async function to each Array element in series.",

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