lie-any
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -8,19 +8,21 @@ var qMap = require('lie-quickmap'); | ||
return promise(function(yes,no){ | ||
all(qMap(array,function(value){ | ||
var cvalue = cast(value); | ||
if(hasfunc){ | ||
cvalue = cvalue.then(func); | ||
} | ||
return cvalue.then(function(pValue){ | ||
if(pValue){ | ||
yes(true); | ||
}else{ | ||
return false; | ||
cast(array).then(function(arr){ | ||
all(qMap(arr,function(value){ | ||
var cvalue = cast(value); | ||
if(hasfunc){ | ||
cvalue = cvalue.then(func); | ||
} | ||
}); | ||
})).then(function(){ | ||
yes(false); | ||
},no); | ||
return cvalue.then(function(pValue){ | ||
if(pValue){ | ||
yes(true); | ||
}else{ | ||
return false; | ||
} | ||
}); | ||
})).then(function(){ | ||
yes(false); | ||
},no); | ||
}); | ||
}); | ||
} | ||
module.exports = any; | ||
module.exports = any; |
{ | ||
"name": "lie-any", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "any lie will do", | ||
@@ -5,0 +5,0 @@ "main": "lib/any.js", |
5336
83