when-conditional
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "when-conditional", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A simple little asyncronous if check and conditional method", | ||
@@ -5,0 +5,0 @@ "main": "when.js", |
@@ -18,2 +18,7 @@ # When-conditional | ||
var interval = setInterval(function(){ | ||
console.log("someVar is " + someVar); | ||
if(someVar === true) clearInterval(interval); | ||
}, 1000); | ||
when(function condition(){ | ||
@@ -27,3 +32,3 @@ return (someVar === true); | ||
someVar = true; | ||
}, 10000) | ||
}, 10000); | ||
@@ -54,2 +59,2 @@ ``` | ||
## See you when-ever! | ||
Copyright Glen Keane - 2015 - MIT Licence | ||
Copyright Glen Keane - 2015 - MIT Licence |
var when = require('../'); | ||
var someVar = false; | ||
var interval = setInterval(function(){ | ||
console.log('someVar is ' + someVar); | ||
if(someVar === true) clearInterval(interval); | ||
}, 1000); | ||
when(function condition(){ | ||
@@ -12,2 +17,2 @@ return (someVar === true); | ||
someVar = true; | ||
}, 1000); | ||
}, 10000); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2631
24
58