mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-22 16:30:11 +00:00
Add string convenience method.
This commit is contained in:
parent
87b3bbe785
commit
cdbb264093
@ -17,3 +17,7 @@ String.isNullOrWhitespace = function( input ) {
|
||||
String.prototype.endsWith = function(suffix) {
|
||||
return this.indexOf(suffix, this.length - suffix.length) !== -1;
|
||||
};
|
||||
|
||||
String.is = function( val ) {
|
||||
return typeof val === 'string' || val instanceof String;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user