Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

function-loop

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

function-loop

Run a list of functions in order in a given object context. The functions can be callback-taking or promise-returning.

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
233K
decreased by-4%
Maintainers
1
Weekly downloads
 
Created
Source

function-loop

Run a list of functions in order in a given object context. The functions can be callback-taking or promise-returning.

This module is zalgo-exposing, meaning that synchronous calls to the cb functions will result in a sync call to the supplied cb, and async calls will result in the cb being called asynchronously. It does not artificially defer if callbacks are called synchronously.

API

loop(context, functionList, doneCallback, errorCallback)

Run all the functions in the context of the context object, and then call the doneCallback or call the errorCallback if there are any errors.

FAQs

Package last updated on 28 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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