Skip to content

Commit

Permalink
update core-js data (#9119)
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock authored Oct 15, 2021
1 parent f2a5f0e commit 5e90bae
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ tags:
- Method
- Prototype
- Sorting
- Polyfill
browser-compat: javascript.builtins.Array.sort
---
{{JSRef}}
Expand Down Expand Up @@ -304,6 +305,7 @@ Before version 10 (or EcmaScript 2019), sort stability was not guaranteed, meani

## See also

- A polyfill of `Array.prototype.sort` with modern behavior like stable sort is available in [`core-js`](https://github.com/zloirock/core-js#ecmascript-array)
- {{jsxref("Array.prototype.reverse()")}}
- {{jsxref("String.prototype.localeCompare()")}}
- [About the stability of the algorithm used
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ tags:
- Method
- Prototype
- Reference
- Polyfill
browser-compat: javascript.builtins.Date.getYear
---
{{JSRef}} {{deprecated_header}}
Expand Down Expand Up @@ -105,6 +106,7 @@ var year = Xmas.getYear(); // returns 95

## See also

- A polyfill of `Date.prototype.getYear` is available in [`core-js`](https://github.com/zloirock/core-js#ecmascript-date)
- {{jsxref("Date.prototype.getFullYear()")}}
- {{jsxref("Date.prototype.getUTCFullYear()")}}
- {{jsxref("Date.prototype.setYear()")}}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ tags:
- Method
- Prototype
- Reference
- Polyfill
browser-compat: javascript.builtins.Date.setYear
---
{{JSRef}} {{deprecated_header}}
Expand Down Expand Up @@ -67,6 +68,7 @@ theBigDay.setYear(2000);

## See also

- A polyfill of `Date.prototype.setYear` is available in [`core-js`](https://github.com/zloirock/core-js#ecmascript-date)
- {{jsxref("Date.prototype.getFullYear()")}}
- {{jsxref("Date.prototype.getUTCFullYear()")}}
- {{jsxref("Date.prototype.setFullYear()")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ tags:
- Method
- Prototype
- Reference
- Polyfill
browser-compat: javascript.builtins.Date.toGMTString
---
{{JSRef}} {{deprecated_header}}
Expand Down Expand Up @@ -57,6 +58,7 @@ console.log(str); // Mon, 18 Dec 1995 17:28:35 GMT

## See also

- A polyfill of `Date.prototype.toGMTString` is available in [`core-js`](https://github.com/zloirock/core-js#ecmascript-date)
- {{jsxref("Date.prototype.toLocaleDateString()")}}
- {{jsxref("Date.prototype.toTimeString()")}}
- {{jsxref("Date.prototype.toUTCString()")}}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ tags:
- Deprecated
- JavaScript
- Method
- Polyfill
browser-compat: javascript.builtins.escape
---
{{jsSidebar("Objects")}}
Expand Down Expand Up @@ -81,6 +82,7 @@ escape('@*_+-./'); // "@*_+-./"

## See also

- A polyfill of `escape` is available in [`core-js`](https://github.com/zloirock/core-js#ecmascript-string-and-regexp)
- {{jsxref("encodeURI")}}
- {{jsxref("encodeURIComponent")}}
- {{jsxref("unescape")}}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tags:
- Object
- hasOwn
- Experimental
- Polyfill
browser-compat: javascript.builtins.Object.hasOwn
---
{{JSRef}}{{SeeCompatTable}}
Expand Down Expand Up @@ -166,6 +167,7 @@ if (Object.hasOwn(foo, 'prop')) {

## See also

- A polyfill of `Object.hasOwn` is available in [`core-js`](https://github.com/zloirock/core-js#ecmascript-object)
- {{jsxref("Object.hasOwnProperty()")}}
- [Enumerability and ownership of properties](/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties)
- {{jsxref("Object.getOwnPropertyNames()")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ tags:
- Reference
- RegExp
- Regular Expressions
- Polyfill
browser-compat: javascript.builtins.RegExp.dotAll
---
{{JSRef}}
Expand Down Expand Up @@ -65,6 +66,7 @@ console.log(str2.replace(regex2,'')); // Output: bar

## See also

- A polyfill of `dotAll` `RegExp` flag is available in [`core-js`](https://github.com/zloirock/core-js#ecmascript-string-and-regexp)
- {{JSxRef("RegExp.lastIndex")}}
- {{JSxRef("RegExp.prototype.global")}}
- {{JSxRef("RegExp.prototype.hasIndices")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tags:
- Reference
- RegExp
- Regular Expressions
- Polyfill
browser-compat: javascript.builtins.RegExp
---
{{JSRef}}
Expand Down Expand Up @@ -243,7 +244,7 @@ Note that due to web compatibility, `RegExp.$N` will still return an empty strin

## See also

- A polyfill of many modern `RegExp` features is available in [`core-js`](https://github.com/zloirock/core-js#ecmascript-string-and-regexp)
- A polyfill of many modern `RegExp` features (`dotAll`, `sticky` flags, named capture groups, etc.) is available in [`core-js`](https://github.com/zloirock/core-js#ecmascript-string-and-regexp)
- [Regular Expressions](/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) chapter in the [JavaScript Guide](/en-US/docs/Web/JavaScript/Guide)
- {{jsxref("String.prototype.match()")}}
- {{jsxref("String.prototype.replace()")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ tags:
- JavaScript
- Reference
- RegExp
- Polyfill
browser-compat: javascript.builtins.RegExp.RegExp
---
{{JSRef}}
Expand Down Expand Up @@ -122,6 +123,7 @@ such as user input.

## See also

- A polyfill of many modern `RegExp` features (`dotAll`, `sticky` flags, named capture groups, etc.) is available in [`core-js`](https://github.com/zloirock/core-js#ecmascript-string-and-regexp)
- [Regular
Expressions](/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) chapter in the [JavaScript
Guide](/en-US/docs/Web/JavaScript/Guide)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ console.log(atWay); // Logs: 't'

## See also

- A polyfill of `String.prototype.at` is available in [`core-js`](https://github.com/zloirock/core-js#ecmascript-string-and-regexp)
- [A polyfill for the at() method](https://github.com/tc39/proposal-relative-indexing-method#polyfill).
- {{jsxref("String.prototype.indexOf()")}}
- {{jsxref("String.prototype.lastIndexOf()")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ tags:
- Prototype
- Reference
- String
- Polyfill
browser-compat: javascript.builtins.String.substr
---
{{JSRef}}
Expand Down Expand Up @@ -111,5 +112,6 @@ console.log(aString.substr(20, 2)); // ''

## See also

- A polyfill of `String.prototype.substr` is available in [`core-js`](https://github.com/zloirock/core-js#ecmascript-string-and-regexp)
- {{jsxref("String.prototype.slice()")}}
- {{jsxref("String.prototype.substring()")}}
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ numbers.sort((a, b) => a - b); // compare numbers

## See also

- A polyfill of `TypedArray.prototype.sort` is available in [`core-js`](https://github.com/zloirock/core-js#ecmascript-typed-arrays)
- A polyfill of `TypedArray.prototype.sort` with modern behavior like stable sort is available in [`core-js`](https://github.com/zloirock/core-js#ecmascript-typed-arrays)
- {{jsxref("Array.prototype.sort()")}}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ tags:
- Deprecated
- JavaScript
- Method
- Polyfill
browser-compat: javascript.builtins.unescape
---
{{jsSidebar("Objects")}}
Expand Down Expand Up @@ -67,6 +68,7 @@ unescape('%u0107'); // "ć"

## See also

- A polyfill of `unescape` is available in [`core-js`](https://github.com/zloirock/core-js#ecmascript-string-and-regexp)
- {{jsxref("decodeURI")}}
- {{jsxref("decodeURIComponent")}}
- {{jsxref("escape")}}

0 comments on commit 5e90bae

Please sign in to comment.