0.1.3 • Published 12 years ago
boneidle v0.1.3
Bone Idle
Lazy Functional Library For Node.js
isNotNull(str, function(ok) {
if (ok) {
hasLengthGreaterThan2(str, function(ok) {
if (ok) {
res.send("All good")
} else {
res.send("Bad Input");
}
})
} else {
res.send("Bad Input");
}
});
Becomes
b_.chain(isNotNull).and(hasLengthGreaterThan2).call("some param", function(either) {
if ()
})