Socket
Book a DemoInstallSign in
Socket

whenjs

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

whenjs

A Simple 'when' function for both node and the browser

Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

When.js

A simple library for 'when' loops

Usage

var when = require("whenjs")

// Later

when(function(){
    return true == true; // The Condition.
}, function(){
    alert("True == True!"); // When The Condition Is True
})

It Will Work In The Browser Too!

Simply download when.js, then include <script src="when.js" type="text/javascript"></script>"

Keywords

when

FAQs

Package last updated on 01 Nov 2013

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