titan-cli
Version:
Command Line Interface for TitanJS Scaffolding
17 lines (14 loc) • 365 B
JavaScript
module.exports = new (function() {
/**
* Tries to do whatever method or action is specified by the parameter
* If it's not null, it's executed, else it skips
* @public
* @method
* @param {Function} todo
*/
this.attempt = function(todo) {
if (typeof (todo) !== 'undefined') {
todo();
}
}
})();