When.js
$3
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
"