You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

grpc-string-utils

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grpc-string-utils - npm Package Compare versions

Comparing version

to
0.0.4

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