Skip to content

Commit 7e274eb

Browse files
committed
Remove String.startsWith polyfill
1 parent 1807c70 commit 7e274eb

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

templates/switchers.js

-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
(function() {
22
'use strict';
33

4-
if (!String.prototype.startsWith) {
5-
Object.defineProperty(String.prototype, 'startsWith', {
6-
value: function(search, rawPos) {
7-
const pos = rawPos > 0 ? rawPos|0 : 0;
8-
return this.substring(pos, pos + search.length) === search;
9-
}
10-
});
11-
}
12-
134
// Parses versions in URL segments like:
145
// "3", "dev", "release/2.7" or "3.6rc2"
156
const version_regexs = [

0 commit comments

Comments
 (0)