List of utility methods to do String Length Check
isLengthGraterThan(limit)String.prototype.isLengthGraterThan = function(limit){ return this.length > limit; | |
isLengthGreaterThan(limit)String.prototype.isLengthGreaterThan = function(limit) { return this.length > limit; console.log("John".isLengthGreaterThan(3)); | |
isLengthGreaterThan(limit)String.prototype.isLengthGreaterThan = function(limit) { return this.length > limit; console.log("john".isLengthGreaterThan(3)); | |
isLengthGreaterThan(limit)String.prototype.isLengthGreaterThan = function(limit) { return this.length > limit; console.log("John".isLengthGreaterThan(3)); Number.prototype.isPositive = function() { return this > 0; | |
isLengthGreaterThan(limit)String.prototype.isLengthGreaterThan = function(limit) { return this.length > limit; console.log("Ringo".isLengthGreaterThan(3)); Number.prototype.isPositive = function() { return this > 0; var n = new Number(3); console.log(n.isPositive()); ... | |
isLengthGreaterThan(limit)String.prototype.isLengthGreaterThan = function(limit) { return this.length > limit; console.log('John'.isLengthGreaterThan(3)); Number.prototype.isPositive = function() { return this > 0; var a = new Number(3); console.log(a.isPositive()); ... | |
isLengthGreaterThan(limit)String.prototype.isLengthGreaterThan = function(limit) { return this.length > limit; console.log("John".isLengthGreaterThan(3)); Number.prototype.isPositive = function() { return this > 0; | |
isLengthGreaterThan(limit)String.prototype.isLengthGreaterThan = function(limit) { return this.length > limit; console.log("John".isLengthGreaterThan(3)); Number.prototype.isPositive = function() { return this > 0; 3.isPostive(3); a.isPositive() ... | |
isLengthGreaterThan(limit)String.prototype.isLengthGreaterThan = function(limit) { return this.length > limit; console.log("John".isLengthGreaterThan(3)); Number.prototype.isPositive = function() { return this > 0; var a = new Number(3); console.log(a.isPositive()); ... | |
isLengthGreatherThan(limit)'use strict'; String.prototype.isLengthGreatherThan = function(limit) { return this.length > limit; }; console.log('John'.isLengthGreatherThan(3)); Number.prototype.isPositive = function() { return this > 0; }; var a = -3; ... |