grpc-string-utils
Advanced tools
Comparing version
17
index.js
@@ -30,2 +30,7 @@ // index.js | ||
/** | ||
* Check is an object is null | ||
* @param object an object. | ||
* @returns boolean response `true` or `false` depending on the input. | ||
*/ | ||
var isNull = function(object) { | ||
@@ -36,11 +41,7 @@ return ((typeof object) === 'undefined' || (object === null)) | ||
//---- Exports | ||
/** | ||
* Check is an object is null | ||
* @param Input object. | ||
*/ | ||
module.exports.isNull = isNull; | ||
// | ||
// String.prototype.isEmpty = function() { | ||
// return isNull(this) || this.trim().length === 0 || this.trim() === '' | ||
// }; | ||
String.prototype.isEmpty = function() { | ||
return isNull(this) || this.trim().length === 0 || this.trim() === '' | ||
}; |
{ | ||
"name": "grpc-string-utils", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "gRPC driven string utility functions.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
15763
0.36%