fluentnode
Version:
Fluent apis for node (based on the concepts used in C#'s FluentSharp
34 lines (26 loc) • 666 B
JavaScript
// Generated by CoffeeScript 1.12.7
(function() {
global.existy = function(value) {
return value != null;
};
global.not_Null = global.existy;
global.is_Number = function(value) {
return (typeof value === 'number') && value.is_Number();
};
global.is_Null = function(value) {
return value === null;
};
global.file_Exists = function(file) {
if (not_Null(file)) {
return file.file_Exists();
} else {
return false;
}
};
global.using = function(target, callback) {
return callback.apply(target);
};
global.truthly = function(value) {
return (value != null) && value !== false;
};
}).call(this);