mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	Add toLowerCase
This commit is contained in:
		
							parent
							
								
									2118fadc48
								
							
						
					
					
						commit
						25ec5a24ab
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,7 +1,11 @@
 | 
			
		|||
export function capitalize(s: string): string {
 | 
			
		||||
	return toUpperCase(s.charAt(0)) + s.slice(1).toLowerCase();
 | 
			
		||||
	return toUpperCase(s.charAt(0)) + toLowerCase(s.slice(1));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export function toUpperCase(s: string): string {
 | 
			
		||||
	return s.toUpperCase();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export function toLowerCase(s: string): string {
 | 
			
		||||
	return s.toLowerCase();
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue