mirror of
				https://github.com/JuanCanham/HackMyResume.git
				synced 2025-11-04 06:47:27 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			422 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			422 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
/**
 | 
						|
String utility functions.
 | 
						|
@license Copyright (c) 2015 | James M. Devlin
 | 
						|
*/
 | 
						|
 | 
						|
/**
 | 
						|
Determine if the string is null, empty, or whitespace.
 | 
						|
See: http://stackoverflow.com/a/32800728/4942583
 | 
						|
@method isNullOrWhitespace
 | 
						|
*/
 | 
						|
 | 
						|
String.isNullOrWhitespace = function( input ) {
 | 
						|
  return !input || !input.trim();
 | 
						|
};
 | 
						|
 | 
						|
String.prototype.endsWith = function(suffix) {
 | 
						|
  return this.indexOf(suffix, this.length - suffix.length) !== -1;
 | 
						|
};
 |