chg: simplified code
This commit is contained in:
		
							parent
							
								
									a0f5729e58
								
							
						
					
					
						commit
						90e91ee9f7
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -438,9 +438,7 @@ String.prototype.pad = function(str, length, mode) {
 | 
			
		|||
 * @param Boolean
 | 
			
		||||
 */
 | 
			
		||||
String.prototype.contains = function(str, fromIndex) {
 | 
			
		||||
    if (this.indexOf(str, fromIndex ? fromIndex : 0) > -1)
 | 
			
		||||
        return true;
 | 
			
		||||
    return false;
 | 
			
		||||
    return this.indexOf(str, fromIndex || 0) > -1;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue