You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							17 lines
						
					
					
						
							553 B
						
					
					
				
			
		
		
	
	
							17 lines
						
					
					
						
							553 B
						
					
					
				'use strict'; | 
						|
var $ = require('../internals/export'); | 
						|
var $trimStart = require('../internals/string-trim').start; | 
						|
var forcedStringTrimMethod = require('../internals/string-trim-forced'); | 
						|
 | 
						|
var FORCED = forcedStringTrimMethod('trimStart'); | 
						|
 | 
						|
var trimStart = FORCED ? function trimStart() { | 
						|
  return $trimStart(this); | 
						|
} : ''.trimStart; | 
						|
 | 
						|
// `String.prototype.{ trimStart, trimLeft }` methods | 
						|
// https://github.com/tc39/ecmascript-string-left-right-trim | 
						|
$({ target: 'String', proto: true, forced: FORCED }, { | 
						|
  trimStart: trimStart, | 
						|
  trimLeft: trimStart | 
						|
});
 | 
						|
 |