We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d02bfc7 commit ac9d0edCopy full SHA for ac9d0ed
source/polyfill.ts
@@ -91,7 +91,8 @@ if (String.prototype.includes === undefined) {
91
* https://stackoverflow.com/a/2308168
92
*/
93
if (String.prototype.trimLeft === undefined) {
94
- String.prototype.trimLeft = () => {
+ // tslint:disable-next-line: space-before-function-paren
95
+ String.prototype.trimLeft = function (): string {
96
return this.replace(/^\s+/, '');
97
};
98
}
@@ -101,7 +102,8 @@ if (String.prototype.trimLeft === undefined) {
101
102
103
104
if (String.prototype.trimRight === undefined) {
- String.prototype.trimRight = () => {
105
106
+ String.prototype.trimRight = function (): string {
107
108
109
0 commit comments