Skip to content

Commit b5402d4

Browse files
authored
Update polyfill.ts
1 parent ac9d0ed commit b5402d4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

source/polyfill.ts

-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
if (String.prototype.repeat === undefined) {
66
// tslint:disable-next-line:space-before-function-paren
77
String.prototype.repeat = function (count): string {
8-
'use strict';
98
if (this === null) {
109
throw new TypeError('can\'t convert ' + this + ' to object');
1110
}
@@ -51,7 +50,6 @@ if (String.prototype.startsWith === undefined) {
5150
};
5251
}
5352

54-
5553
/**
5654
* IE11 polyfill for string.endsWith function, from
5755
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith
@@ -73,7 +71,6 @@ if (String.prototype.endsWith === undefined) {
7371
if (String.prototype.includes === undefined) {
7472
// tslint:disable-next-line: space-before-function-paren
7573
String.prototype.includes = function (search, start): boolean {
76-
'use strict';
7774
if (typeof start !== 'number') {
7875
start = 0;
7976
}

0 commit comments

Comments
 (0)