Skip to content

Commit 3c394e6

Browse files
authored
add links to some core-js polyfills (#4838)
1 parent 1636870 commit 3c394e6

File tree

211 files changed

+426
-16
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+426
-16
lines changed

files/en-us/web/api/nodelist/entries/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- Method
88
- Node
99
- NodeList
10+
- Polyfill
1011
---
1112
<div>{{APIRef("DOM")}}</div>
1213

@@ -53,6 +54,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
5354
<h2 id="See_also">See also</h2>
5455

5556
<ul>
57+
<li>A polyfill of <code>NodeList.prototype.entries</code> is available in <a href="https://github.com/zloirock/core-js#iterable-dom-collections"><code>core-js</code></a></li>
5658
<li>{{domxref("Node")}}</li>
5759
<li>{{domxref("NodeList")}}</li>
5860
</ul>

files/en-us/web/api/nodelist/foreach/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- NodeList
99
- Reference
1010
- Web
11+
- Polyfill
1112
---
1213
<p>{{APIRef("DOM")}}</p>
1314

@@ -125,6 +126,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
125126
<h2 id="See_also">See also</h2>
126127

127128
<ul>
129+
<li>A polyfill of <code>NodeList.prototype.forEach</code> is available in <a href="https://github.com/zloirock/core-js#iterable-dom-collections"><code>core-js</code></a></li>
128130
<li>{{domxref("Node")}}</li>
129131
<li>{{domxref("NodeList")}}</li>
130132
</ul>

files/en-us/web/api/nodelist/keys/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- NodeList
99
- Reference
1010
- Web
11+
- Polyfill
1112
---
1213
<p>{{APIRef("DOM")}}</p>
1314

@@ -56,6 +57,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
5657
<h2 id="See_also">See also</h2>
5758

5859
<ul>
60+
<li>A polyfill of <code>NodeList.prototype.keys</code> is available in <a href="https://github.com/zloirock/core-js#iterable-dom-collections"><code>core-js</code></a></li>
5961
<li>{{domxref("Node")}}</li>
6062
<li>{{domxref("NodeList")}}</li>
6163
</ul>

files/en-us/web/api/nodelist/values/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- NodeList
99
- Reference
1010
- Web
11+
- Polyfill
1112
---
1213
<p>{{APIRef("DOM")}}</p>
1314

@@ -56,6 +57,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
5657
<h2 id="See_also">See also</h2>
5758

5859
<ul>
60+
<li>A polyfill of <code>NodeList.prototype.values</code> is available in <a href="https://github.com/zloirock/core-js#iterable-dom-collections"><code>core-js</code></a></li>
5961
<li>{{domxref("Node")}}</li>
6062
<li>{{domxref("NodeList")}}</li>
6163
</ul>

files/en-us/web/api/url/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- hostname
1717
- href
1818
- origin
19+
- Polyfill
1920
---
2021
<p>{{APIRef("URL API")}}</p>
2122

@@ -144,6 +145,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
144145
<h2 id="See_also">See also</h2>
145146

146147
<ul>
148+
<li>A polyfill of <code>URL</code> is available in <a href="https://github.com/zloirock/core-js#url-and-urlsearchparams"><code>core-js</code></a></li>
147149
<li><a href="/en-US/docs/Web/API/URL_API">URL API</a></li>
148150
<li><a href="/en-US/docs/Learn/Common_questions/What_is_a_URL">What is a URL?</a></li>
149151
<li>Property to obtain a <code>URL</code> object: {{domxref("URL")}}.</li>

files/en-us/web/api/url/tojson/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- Reference
88
- URL
99
- URL API
10+
- Polyfill
1011
---
1112
<div>{{APIRef("URL API")}}</div>
1213

@@ -51,3 +52,9 @@ <h2 id="Specifications">Specifications</h2>
5152
<h2 id="Browser_compatibility">Browser compatibility</h2>
5253

5354
<p>{{Compat("api.URL.toJSON")}}</p>
55+
56+
<h2 id="See_also">See also</h2>
57+
58+
<ul>
59+
<li>A polyfill of <code>URL.prototype.toJSON</code> is available in <a href="https://github.com/zloirock/core-js#url-and-urlsearchparams"><code>core-js</code></a></li>
60+
</ul>

files/en-us/web/api/url/url/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- Reference
88
- URL
99
- URL API
10+
- Polyfill
1011
---
1112
<div>{{APIRef("URL API")}}</div>
1213

@@ -113,5 +114,6 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
113114
<h2 id="See_also">See also</h2>
114115

115116
<ul>
117+
<li>A polyfill of <code>URL</code> is available in <a href="https://github.com/zloirock/core-js#url-and-urlsearchparams"><code>core-js</code></a></li>
116118
<li>The interface it belongs to: {{domxref("URL")}}.</li>
117119
</ul>

files/en-us/web/api/urlsearchparams/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Reference
99
- URL API
1010
- URLSearchParams
11+
- Polyfill
1112
---
1213
<div>{{ApiRef("URL API")}}</div>
1314

@@ -137,6 +138,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
137138
<h2 id="See_also">See also</h2>
138139

139140
<ul>
141+
<li>A polyfill of <code>URLSearchParams</code> is available in <a href="https://github.com/zloirock/core-js#url-and-urlsearchparams"><code>core-js</code></a></li>
140142
<li>The {{domxref("URL")}} interface.</li>
141143
<li><a href="https://developers.google.com/web/updates/2016/01/urlsearchparams?hl=en">Google Developers: Easy URL manipulation with URLSearchParams</a></li>
142144
</ul>

files/en-us/web/api/window/clearimmediate/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- HTML DOM
77
- Method
88
- Window
9+
- Polyfill
910
---
1011
<p>{{APIRef("HTML DOM")}}{{Non-standard_header}}</p>
1112

@@ -67,5 +68,6 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
6768
<h2 id="See_also">See also</h2>
6869

6970
<ul>
71+
<li>A polyfill of <code>clearImmediate</code> is available in <a href="https://github.com/zloirock/core-js#setimmediate"><code>core-js</code></a></li>
7072
<li>{{DOMxRef("Window.setImmediate()")}}</li>
7173
</ul>

files/en-us/web/api/window/setimmediate/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- Reference
1010
- Window
1111
- setImmediate
12+
- Polyfill
1213
---
1314
<div>{{APIRef("HTML DOM")}}{{Non-standard_header}}</div>
1415

@@ -95,6 +96,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
9596
<h2 id="See_also">See also</h2>
9697

9798
<ul>
99+
<li>A polyfill of <code>setImmediate</code> is available in <a href="https://github.com/zloirock/core-js#setimmediate"><code>core-js</code></a></li>
98100
<li>{{DOMxRef("Window.clearImmediate()")}}</li>
99101
<li><a class="external"
100102
href="http://ie.microsoft.com/testdrive/Performance/setImmediateSorting/Default.html">Microsoft

files/en-us/web/api/windoworworkerglobalscope/queuemicrotask/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
- asynchronous
2222
- queueMicrotask
2323
- setTimeout
24+
- Polyfill
2425
---
2526
<div>{{APIRef("HTML DOM")}}</div>
2627

@@ -140,6 +141,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
140141
<h2 id="See_also">See also</h2>
141142

142143
<ul>
144+
<li>A polyfill of <code>queueMicrotask</code> is available in <a href="https://github.com/zloirock/core-js#queuemicrotask"><code>core-js</code></a></li>
143145
<li><a href="/en-US/docs/Web/API/HTML_DOM_API/Microtask_guide">Using microtasks in
144146
JavaScript with queueMicrotask()</a></li>
145147
<li><a href="/en-US/docs/Learn/JavaScript/Asynchronous">Asynchronous JavaScript</a></li>

files/en-us/web/api/windoworworkerglobalscope/setinterval/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- Timers
1414
- WindowOrWorkerGlobalScope
1515
- setInterval
16+
- Polyfill
1617
---
1718
<div>{{APIRef("HTML DOM")}}</div>
1819

@@ -789,6 +790,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
789790
<h2 id="See_also">See also</h2>
790791

791792
<ul>
793+
<li>A polyfill of <code>setInterval</code> which allows passing arguments to the callback is available in <a href="https://github.com/zloirock/core-js#settimeout-and-setinterval"><code>core-js</code></a></li>
792794
<li><a href="/en-US/Add-ons/Code_snippets/Timers">JavaScript timers</a></li>
793795
<li>{{domxref("WindowOrWorkerGlobalScope.setTimeout")}}</li>
794796
<li>{{domxref("WindowOrWorkerGlobalScope.clearTimeout")}}</li>

files/en-us/web/api/windoworworkerglobalscope/settimeout/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- Timers
1414
- WindowOrWorkerGlobalScope
1515
- setTimeout
16+
- Polyfill
1617
---
1718
<div>{{APIRef("HTML DOM")}}</div>
1819

@@ -367,6 +368,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
367368
<h2 id="See_also">See also</h2>
368369

369370
<ul>
371+
<li>A polyfill of <code>setTimeout</code> which allows passing arguments to the callback is available in <a href="https://github.com/zloirock/core-js#settimeout-and-setinterval"><code>core-js</code></a></li>
370372
<li>{{domxref("WindowOrWorkerGlobalScope.clearTimeout")}}</li>
371373
<li>{{domxref("WindowOrWorkerGlobalScope.setInterval")}}</li>
372374
<li>{{domxref("window.requestAnimationFrame")}}</li>

files/en-us/web/javascript/reference/global_objects/aggregateerror/aggregateerror/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Constructor
66
- JavaScript
77
- Reference
8+
- Polyfill
89
browser-compat: javascript.builtins.AggregateError.AggregateError
910
---
1011
<div>{{JSRef}}</div>
@@ -54,5 +55,6 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
5455
<h2 id="See_also">See also</h2>
5556

5657
<ul>
58+
<li>A polyfill of <code>AggregateError</code> is available in <a href="https://github.com/zloirock/core-js#ecmascript-promise"><code>core-js</code></a></li>
5759
<li>{{jsxref("Promise.any")}}</li>
5860
</ul>

files/en-us/web/javascript/reference/global_objects/aggregateerror/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Class
77
- Interface
88
- JavaScript
9+
- Polyfill
910
browser-compat: javascript.builtins.AggregateError
1011
---
1112
<div>{{JSRef}}</div>
@@ -67,6 +68,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
6768
<h2 id="See_also">See also</h2>
6869

6970
<ul>
71+
<li>A polyfill of <code>AggregateError</code> is available in <a href="https://github.com/zloirock/core-js#ecmascript-promise"><code>core-js</code></a></li>
7072
<li>{{JSxRef("Error")}}</li>
7173
<li>{{JSxRef("Promise.any")}}</li>
7274
</ul>

files/en-us/web/javascript/reference/global_objects/array/@@iterator/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- Method
1111
- Prototype
1212
- Reference
13+
- Polyfill
1314
browser-compat: javascript.builtins.Array.@@iterator
1415
---
1516
<div>{{JSRef}}</div>
@@ -126,6 +127,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
126127
<h2 id="See_also">See also</h2>
127128

128129
<ul>
130+
<li>A polyfill of <code>Array.prototype[@@iterator]</code> is available in <a href="https://github.com/zloirock/core-js#ecmascript-array"><code>core-js</code></a></li>
129131
<li>{{jsxref("Array.prototype.keys()")}}</li>
130132
<li>{{jsxref("Array.prototype.entries()")}}</li>
131133
<li>{{jsxref("Array.prototype.forEach()")}}</li>

files/en-us/web/javascript/reference/global_objects/array/at/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- polyfill
1111
- at
1212
- Experimental
13+
- Polyfill
1314
browser-compat: javascript.builtins.Array.at
1415
---
1516
<div>{{JSRef}}</div>
@@ -94,6 +95,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
9495
<h2 id="See_also">See also</h2>
9596

9697
<ul>
98+
<li>A polyfill of <code>Array.prototype.at</code> is available in <a href="https://github.com/zloirock/core-js#relative-indexing-method"><code>core-js</code></a></li>
9799
<li><a href="https://github.com/tc39/proposal-relative-indexing-method#polyfill">A polyfill for the at() method</a>.</li>
98100
<li>{{jsxref("Array.prototype.find()")}} – return a value based on a given test.</li>
99101
<li>{{jsxref("Array.prototype.includes()")}} – test whether a value exists in the array.</li>

files/en-us/web/javascript/reference/global_objects/array/copywithin/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- Method
99
- Prototype
1010
- Reference
11-
- polyfill
11+
- Polyfill
1212
browser-compat: javascript.builtins.Array.copyWithin
1313
---
1414
<div>{{JSRef}}</div>
@@ -114,6 +114,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
114114
<h2 id="See_also">See also</h2>
115115

116116
<ul>
117+
<li>A polyfill of <code>Array.prototype.copyWithin</code> is available in <a href="https://github.com/zloirock/core-js#ecmascript-array"><code>core-js</code></a></li>
117118
<li><a href="https://github.com/behnammodi/polyfill/blob/master/array.polyfill.js">A
118119
polyfill</a></li>
119120
<li>{{jsxref("Array")}}</li>

files/en-us/web/javascript/reference/global_objects/array/entries/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- JavaScript
99
- Method
1010
- Prototype
11+
- Polyfill
1112
browser-compat: javascript.builtins.Array.entries
1213
---
1314
<div>{{JSRef}}</div>
@@ -65,6 +66,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
6566
<h2 id="See_also">See also</h2>
6667

6768
<ul>
69+
<li>A polyfill of <code>Array.prototype.entries</code> is available in <a href="https://github.com/zloirock/core-js#ecmascript-array"><code>core-js</code></a></li>
6870
<li>{{jsxref("Array.prototype.keys()")}}</li>
6971
<li>{{jsxref("Array.prototype.values()")}}</li>
7072
<li>{{jsxref("Array.prototype.forEach()")}}</li>

files/en-us/web/javascript/reference/global_objects/array/every/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- JavaScript
88
- Method
99
- Prototype
10-
- polyfill
10+
- Polyfill
1111
browser-compat: javascript.builtins.Array.every
1212
---
1313
<div>{{JSRef}}</div>
@@ -272,6 +272,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
272272
<h2 id="See_also">See also</h2>
273273

274274
<ul>
275+
<li>A polyfill of <code>Array.prototype.every</code> is available in <a href="https://github.com/zloirock/core-js#ecmascript-array"><code>core-js</code></a></li>
275276
<li>{{jsxref("Array.prototype.forEach()")}}</li>
276277
<li>{{jsxref("Array.prototype.some()")}}</li>
277278
<li>{{jsxref("Array.prototype.find()")}}</li>

files/en-us/web/javascript/reference/global_objects/array/fill/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- JavaScript
88
- Method
99
- Prototype
10-
- polyfill
10+
- Polyfill
1111
browser-compat: javascript.builtins.Array.fill
1212
---
1313
<div>{{JSRef}}</div>
@@ -147,6 +147,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
147147
<h2 id="See_also">See also</h2>
148148

149149
<ul>
150+
<li>A polyfill of <code>Array.prototype.fill</code> is available in <a href="https://github.com/zloirock/core-js#ecmascript-array"><code>core-js</code></a></li>
150151
<li>{{jsxref("Array")}}</li>
151152
<li>{{jsxref("TypedArray.prototype.fill()")}}</li>
152153
</ul>

files/en-us/web/javascript/reference/global_objects/array/filter/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- Method
99
- Prototype
1010
- Reference
11-
- polyfill
11+
- Polyfill
1212
browser-compat: javascript.builtins.Array.filter
1313
---
1414
<div>{{JSRef}}</div>
@@ -276,6 +276,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
276276
<h2 id="See_also">See also</h2>
277277

278278
<ul>
279+
<li>A polyfill of <code>Array.prototype.filter</code> is available in <a href="https://github.com/zloirock/core-js#ecmascript-array"><code>core-js</code></a></li>
279280
<li>{{jsxref("Array.prototype.forEach()")}}</li>
280281
<li>{{jsxref("Array.prototype.every()")}}</li>
281282
<li>{{jsxref("Array.prototype.some()")}}</li>

files/en-us/web/javascript/reference/global_objects/array/find/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Method
99
- Prototype
1010
- Reference
11+
- Polyfill
1112
browser-compat: javascript.builtins.Array.find
1213
---
1314
<div>{{JSRef}}</div>
@@ -201,6 +202,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
201202
<h2 id="See_also">See also</h2>
202203

203204
<ul>
205+
<li>A polyfill of <code>Array.prototype.find</code> is available in <a href="https://github.com/zloirock/core-js#ecmascript-array"><code>core-js</code></a></li>
204206
<li>{{jsxref("Array.prototype.findIndex()")}} – find and return an index</li>
205207
<li>{{jsxref("Array.prototype.includes()")}} – test whether a value exists in the array
206208
</li>

files/en-us/web/javascript/reference/global_objects/array/findindex/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Method
99
- Prototype
1010
- Reference
11+
- Polyfill
1112
browser-compat: javascript.builtins.Array.findIndex
1213
---
1314
<div>{{JSRef}}</div>
@@ -157,6 +158,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
157158
<h2 id="See_also">See also</h2>
158159

159160
<ul>
161+
<li>A polyfill of <code>Array.prototype.findIndex</code> is available in <a href="https://github.com/zloirock/core-js#ecmascript-array"><code>core-js</code></a></li>
160162
<li>{{jsxref("Array.prototype.find()")}}</li>
161163
<li>{{jsxref("Array.prototype.indexOf()")}}</li>
162164
</ul>

0 commit comments

Comments
 (0)