asterisk-manager
Version:
A node.js module for interacting with the Asterisk Manager API.
11 lines (9 loc) • 313 B
JavaScript
module.exports.stringHasLength = function(line) {
return line && line.length;
};
module.exports.defaultCallback = function(callback) {
return 'function' === typeof callback ? callback : function() {};
};
module.exports.removeSpaces = function (string) {
return (string || "").replace(/^\s*|\s*$/g, '');
};