Skip to content

Split README into files located at /docs #1095

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 287 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
287 commits
Select commit Hold shift + click to select a range
7b226a7
Added "ES Error" heading
Rudxain Jun 22, 2022
2919e5c
Added "ES Function" heading
Rudxain Jun 22, 2022
eeb1ca0
Added "ES Math" heading
Rudxain Jun 22, 2022
17ccdbd
Added "ES Number" heading
Rudxain Jun 22, 2022
32160c2
Added "ES Object" heading
Rudxain Jun 22, 2022
920939b
Added "ES String and RegExp" heading
Rudxain Jun 22, 2022
84ffaef
Relative URLs @ Web standards
Rudxain Jun 22, 2022
7d886b4
Fixed CJS link @ Web Standards
Rudxain Jun 22, 2022
b2e57b0
Fixed CJS links and now using root "/" paths instead of "../../"
Rudxain Jun 22, 2022
26a2a42
Fixed all CJS links
Rudxain Jun 22, 2022
8120193
Fixed links at Map.md
Rudxain Jun 22, 2022
a4f9ed4
Fixed links at Set.md
Rudxain Jun 22, 2022
73558b6
Fixed links at WeakMap.md
Rudxain Jun 22, 2022
db4df8a
Fixed links at WeakSet.md
Rudxain Jun 22, 2022
b8e955c
Fixed links at Array.md
Rudxain Jun 22, 2022
51a0613
Fixed links at Date.md
Rudxain Jun 22, 2022
ff22929
Fixed links at Error.md
Rudxain Jun 22, 2022
06324f2
Merge branch 'zloirock:master' into readme-redirect
Rudxain Jun 23, 2022
0f15ea3
Fixed links at Function.md
Rudxain Jun 23, 2022
d019da5
Fixed links at JSON.md
Rudxain Jun 23, 2022
aa7e72e
Fixed links at Math.md
Rudxain Jun 23, 2022
7ac32ea
Fixed links at Number.md
Rudxain Jun 23, 2022
f2f2843
Fixed links at Object.md
Rudxain Jun 23, 2022
64fb08b
Fixed links at Promise.md
Rudxain Jun 23, 2022
639ed86
Fixed links at Reflect.md
Rudxain Jun 23, 2022
74beee9
Merge branch 'zloirock:master' into readme-redirect
Rudxain Jun 24, 2022
d8ae607
Fixed links at String and RegExp.md
Rudxain Jun 24, 2022
cff7346
Fixed links at Symbol.md
Rudxain Jun 24, 2022
2b05dcb
Fixed links at Typed Arrays.md
Rudxain Jun 24, 2022
8d1e3bd
Fixed some links at the README.md
Rudxain Jun 24, 2022
727495b
Merge branch 'zloirock:master' into readme-redirect
Rudxain Jun 24, 2022
587feaf
Create README.md
Rudxain Jun 24, 2022
8c1a96d
Started moving proposals
Rudxain Jun 24, 2022
49c5933
Create `test`
Rudxain Jun 24, 2022
b83522e
Delete `test`
Rudxain Jun 24, 2022
4a13466
Create test & foobar
Rudxain Jun 24, 2022
0873887
Delete test & foobar
Rudxain Jun 24, 2022
d15c162
Create globalThis.md
Rudxain Jun 24, 2022
e12b85b
Fixed links @ `/deno/corejs/README.md`
Rudxain Jun 25, 2022
6d11a4d
Add files via upload
Rudxain Jun 25, 2022
8d81068
Create globalThis.md
Rudxain Jun 25, 2022
d17c3da
Moved ES `globalThis`
Rudxain Jun 25, 2022
9d565af
Create Iteration helpers.md
Rudxain Jun 25, 2022
d007301
Moved Iteration helpers
Rudxain Jun 25, 2022
830564b
Moved Missing polyfills
Rudxain Jun 25, 2022
1898488
Create Missing polyfills.md
Rudxain Jun 25, 2022
56a9ace
Create Collections.md
Rudxain Jul 4, 2022
bce8c71
Delete Map.md
Rudxain Jul 4, 2022
a59077b
Add Map to Collections.md
Rudxain Jul 4, 2022
4399b7c
Delete Set.md
Rudxain Jul 4, 2022
42b1c3a
Add Set to Collections.md
Rudxain Jul 4, 2022
fa46e87
Delete WeakMap.md
Rudxain Jul 4, 2022
10e6b80
Add WeakMap to Collections.md
Rudxain Jul 4, 2022
9764229
Delete WeakSet.md
Rudxain Jul 4, 2022
81dd84a
Add WeakSet to Collections.md
Rudxain Jul 4, 2022
e58db9a
Rename docs/Features/ECMAScript/Proposals/Accessible Object.prototype…
Rudxain Jul 4, 2022
c1e544a
Rename docs/Features/ECMAScript/Proposals/Array deduplication.md to d…
Rudxain Jul 4, 2022
096691d
Rename docs/Features/ECMAScript/Proposals/Array filtering.md to docs/…
Rudxain Jul 4, 2022
f94c192
Rename docs/Features/ECMAScript/Proposals/Array find from last.md to …
Rudxain Jul 4, 2022
01c4320
Rename docs/Features/ECMAScript/Proposals/Array grouping.md to docs/F…
Rudxain Jul 4, 2022
7628422
Rename docs/Features/ECMAScript/Proposals/Array.fromAsync.md to docs/…
Rudxain Jul 4, 2022
1cacc00
Rename docs/Features/ECMAScript/Proposals/Array.isTemplateObject.md t…
Rudxain Jul 4, 2022
d061703
Rename docs/Features/ECMAScript/Proposals/Array.prototype.flat - Arra…
Rudxain Jul 4, 2022
63afa0d
Rename docs/Features/ECMAScript/Proposals/Array.prototype.includes.md…
Rudxain Jul 4, 2022
4b33d42
Rename docs/Features/ECMAScript/Proposals/Change Array by copy.md to …
Rudxain Jul 4, 2022
c08ff10
Rename docs/Features/ECMAScript/Proposals/Efficient 64 bit arithmetic…
Rudxain Jul 4, 2022
c7ccc20
Rename docs/Features/ECMAScript/Proposals/README.md to docs/Features/…
Rudxain Jul 4, 2022
0250df1
Rename docs/Features/ECMAScript/Proposals/Function.prototype.unThis.m…
Rudxain Jul 4, 2022
d2893cf
Rename docs/Features/ECMAScript Proposals/Function.prototype.unThis.m…
Rudxain Jul 4, 2022
e6b1fb5
Rename docs/Features/ECMAScript proposals/Accessible Object.prototype…
Rudxain Jul 4, 2022
7480035
Rename docs/Features/ECMAScript proposals/README.md to docs/Features/…
Rudxain Jul 4, 2022
bdb8034
Rename docs/Features/ECMAScript proposals/Array deduplication.md to d…
Rudxain Jul 4, 2022
2d37f6f
Rename docs/Features/ECMAScript proposals/Array find from last.md to …
Rudxain Jul 4, 2022
00aa3a8
Rename docs/Features/ECMAScript proposals/Array filtering.md to docs/…
Rudxain Jul 4, 2022
9d77d3f
Rename docs/Features/ECMAScript proposals/Array grouping.md to docs/F…
Rudxain Jul 4, 2022
f07856f
Rename docs/Features/ECMAScript proposals/Array.fromAsync.md to docs/…
Rudxain Jul 4, 2022
bcbc32a
Rename docs/Features/ECMAScript proposals/Array.isTemplateObject.md t…
Rudxain Jul 4, 2022
8f891f6
Rename docs/Features/ECMAScript proposals/Array.prototype.flat - Arra…
Rudxain Jul 4, 2022
5bd3427
Rename docs/Features/ECMAScript proposals/Function.prototype.unThis.m…
Rudxain Jul 4, 2022
df2c033
Rename docs/Features/ECMAScript proposals/Array.prototype.includes.md…
Rudxain Jul 4, 2022
2a15e88
Rename docs/Features/ECMAScript proposals/Change Array by copy.md to …
Rudxain Jul 4, 2022
f9b1334
Rename docs/Features/ECMAScript proposals/Efficient 64 bit arithmetic…
Rudxain Jul 4, 2022
ecdf2b5
Rename docs/Features/ECMAScript/Proposals/Function.{ isCallable, isCo…
Rudxain Jul 4, 2022
31324a7
Rename docs/Features/ECMAScript/Proposals/Getting last item from Arra…
Rudxain Jul 4, 2022
22378e4
Rename docs/Features/ECMAScript/Proposals/Iterator helpers.md to docs…
Rudxain Jul 4, 2022
740713b
Move all from ECMAScript/Proposals to proposals/
Rudxain Jul 4, 2022
d9e93e6
Update Usage.md
Rudxain Jul 4, 2022
386d92c
Update Compatibility data.md
Rudxain Jul 4, 2022
7702d7b
Merge branch 'master' into readme-redirect
Rudxain Jul 5, 2022
09c9edb
Update URL.md
Rudxain Jul 5, 2022
0f477f5
Rename URL.md to url.md
Rudxain Jul 5, 2022
88e1ed9
Rename Math.signbit.md to math-signbit.md
Rudxain Jul 5, 2022
92a8957
Rename Map.prototype.emplace.md to map-emplace.md
Rudxain Jul 5, 2022
1d3bf05
Merge with compat data
Rudxain Jul 5, 2022
35f4528
Add Supported engines to Compat data
Rudxain Jul 5, 2022
68338dc
Rename Math extensions.md to math-extensions.md
Rudxain Jul 5, 2022
45f8a23
Rename New Set methods.md to set-methods.md
Rudxain Jul 5, 2022
ef46618
Rename New collections methods.md to collection-methods.md
Rudxain Jul 5, 2022
52b9080
Rename Number.fromString.md to number-from-string.md
Rudxain Jul 5, 2022
da6ba38
Rename Number.range.md to number-range.md
Rudxain Jul 5, 2022
9e7f69b
Rename Object iteration.md to object-iteration.md
Rudxain Jul 5, 2022
d11d93b
Rename Object.fromEntries.md to object-from-entries.md
Rudxain Jul 5, 2022
f17c986
Rename Object.getOwnPropertyDescriptors.md to object-getownpropertyde…
Rudxain Jul 5, 2022
e5d6137
Rename Object.values - Object.entries.md to object-values-entries.md
Rudxain Jul 5, 2022
2b5129d
Rename Observable.md to observable.md
Rudxain Jul 5, 2022
499eaff
Rename Promise.allSettled.md to promise-all-settled.md
Rudxain Jul 5, 2022
e5b3ffe
Rename Promise.any.md to promise-any.md
Rudxain Jul 5, 2022
6f913dd
Rename Promise.prototype.finally.md to promise-finally.md
Rudxain Jul 5, 2022
c3fadc7
Add files via upload
Rudxain Jul 5, 2022
603b431
Moved "Collections" data to its page
Rudxain Jul 5, 2022
c39b2ca
Added all data to Collections
Rudxain Jul 5, 2022
3e9c146
Fixed some links
Rudxain Jul 5, 2022
e6aab32
Rename Promise.try.md to promise-try.md
Rudxain Jul 5, 2022
7eeb2e0
Rename Reflect metadata.md to reflect-metadata.md
Rudxain Jul 5, 2022
3b206c1
Rename RegExp named capture groups.md to regexp-named-groups.md
Rudxain Jul 5, 2022
fb98560
Rename RegExp s (dotAll) flag.md to regexp-dotall-flag.md
Rudxain Jul 5, 2022
7edc686
Rename Relative indexing method.md to relative-indexing-method.md
Rudxain Jul 5, 2022
6702708
Rename Seeded pseudo-random numbers.md to seeded-random.md
Rudxain Jul 5, 2022
d82a70d
Rename String padding.md to string-padding.md
Rudxain Jul 5, 2022
1c4b13a
Rename String#at.md to string-at.md
Rudxain Jul 5, 2022
072e042
Rename String#matchAll.md to string-match-all.md
Rudxain Jul 5, 2022
4d18f0d
Rename String#replaceAll.md to string-replace-all.md
Rudxain Jul 5, 2022
94c0ee0
Rename String.cooked.md to string-cooked.md
Rudxain Jul 5, 2022
2e209f6
Rename String.prototype.codePoints.md to string-code-points.md
Rudxain Jul 5, 2022
b561ddd
Rename String.prototype.trimStart - String.prototype.trimEnd.md to st…
Rudxain Jul 5, 2022
c91e9c9
Rename Symbol.asyncIterator for asynchronous iteration.md to async-it…
Rudxain Jul 5, 2022
1fd3923
Rename Symbol.matcher for pattern matching.md to pattern-matching.md
Rudxain Jul 5, 2022
6c42cf4
Rename Symbol.metadataKey for decorators metadata proposal.md to deco…
Rudxain Jul 5, 2022
e18ab49
Rename Symbol.prototype.description.md to symbol-description.md
Rudxain Jul 5, 2022
d1d9cc2
Rename Symbol.{ asyncDispose, dispose } for using statement.md to usi…
Rudxain Jul 5, 2022
9a8e376
Rename Well-formed JSON.stringify.md to well-formed-stringify.md
Rudxain Jul 5, 2022
4555b64
Rename `.of` and `.from` methods on collection constructors.md to col…
Rudxain Jul 5, 2022
d6dfeac
Rename globalThis.md to global-this.md
Rudxain Jul 5, 2022
c3dec3d
Rename compositeKey and compositeSymbol.md to keys-composition.md
Rudxain Jul 5, 2022
96aa99b
Added proposals to their respective stages
Rudxain Jul 5, 2022
8356afc
Better proposal index
Rudxain Jul 5, 2022
b605f53
Fixed some headings
Rudxain Jul 5, 2022
c6d394a
Added PRNG proposal
Rudxain Jul 5, 2022
4d4052c
Added index to the index
Rudxain Jul 5, 2022
644e9a9
Merge branch 'readme-redirect' of https://github.com/Rudxain/core-js …
Rudxain Jul 5, 2022
44dd569
Fixed some proposal links
Rudxain Jul 5, 2022
7df2a2d
Rename array-deduplication.md to array-unique.md
Rudxain Jul 5, 2022
1cea368
Update array-unique.md
Rudxain Jul 5, 2022
8399c4b
Convert Web standards to folder
Rudxain Jul 5, 2022
c60e9e6
Rename globalThis.md to global-this.md
Rudxain Jul 5, 2022
8667451
Update global-this.md
Rudxain Jul 5, 2022
b70f3fb
Update and rename Array.md to array.md
Rudxain Jul 5, 2022
b2c81b7
Update and rename Collections.md to collections.md
Rudxain Jul 5, 2022
16d7da4
Update and rename Date.md to date.md
Rudxain Jul 5, 2022
804c3d2
Update collections.md
Rudxain Jul 5, 2022
6de19ca
Rename Error.md to error.md
Rudxain Jul 5, 2022
16c38bb
Update and rename Function.md to function.md
Rudxain Jul 5, 2022
94af41c
Update and rename JSON.md to json.md
Rudxain Jul 5, 2022
a8adf32
Update and rename Math.md to math.md
Rudxain Jul 5, 2022
986cc7d
Update and rename Number.md to number.md
Rudxain Jul 5, 2022
df685e3
Update and rename Object.md to object.md
Rudxain Jul 5, 2022
f6c27ba
Update and rename Promise.md to promise.md
Rudxain Jul 5, 2022
9d822fc
Update and rename Reflect.md to reflect.md
Rudxain Jul 5, 2022
de6c606
Update and rename String and RegExp.md to string and regexp.md
Rudxain Jul 5, 2022
9d9315e
Update and rename Symbol.md to symbol.md
Rudxain Jul 5, 2022
72d7b5e
Update and rename Typed Arrays.md to typed-array.md
Rudxain Jul 5, 2022
1be9acc
Merge branch 'zloirock:master' into readme-redirect
Rudxain Jul 5, 2022
5e3808c
Fixed heading levels @ Usage
Rudxain Jul 5, 2022
71363fd
Removed index arrows at root
Rudxain Jul 5, 2022
aac5712
Lowered headings at root
Rudxain Jul 5, 2022
1a6a4ce
Fixed some links
Rudxain Jul 5, 2022
26379b7
Fixed more links
Rudxain Jul 5, 2022
687c502
Fix a few more links
Rudxain Jul 5, 2022
bfd13d1
Fixed some links and syntax highlight
Rudxain Jul 8, 2022
4c227a7
Merge branch 'zloirock:master' into readme-redirect
Rudxain Jul 8, 2022
88019e2
Added more `sh` blocks
Rudxain Jul 8, 2022
12993c8
Merge branch 'master' into readme-redirect
Rudxain Jul 11, 2022
4b316a6
Update Usage.md
Rudxain Jul 11, 2022
4e7731f
Fix some links
Rudxain Jul 11, 2022
c24f384
Fixed all index links
Rudxain Jul 11, 2022
1068512
Fix more links
Rudxain Jul 11, 2022
b98b02c
Seems like all links are fixed?
Rudxain Jul 11, 2022
56fac3d
Merge branch 'zloirock:master' into readme-redirect
Rudxain Jul 11, 2022
c5c6e92
Temp rename to change capitalization
Rudxain Jul 11, 2022
ee22eaf
Rename "Features" to "features"
Rudxain Jul 11, 2022
9d7f4d7
Fix links to features
Rudxain Jul 11, 2022
ace332f
Rename some files to kebab-case
Rudxain Jul 11, 2022
8e483af
Rename Usage.md
Rudxain Jul 11, 2022
8858b81
Fix links
Rudxain Jul 11, 2022
4aff4e9
Rename more
Rudxain Jul 11, 2022
b1dd82a
Rename again
Rudxain Jul 11, 2022
00f1793
Fix links
Rudxain Jul 11, 2022
6ff98e7
Rename Iterable DOM collections.md to dom-collections.md
Rudxain Jul 11, 2022
db24d5c
Fix links
Rudxain Jul 11, 2022
55475d6
Merge branch 'readme-redirect' of https://github.com/Rudxain/core-js …
Rudxain Jul 11, 2022
a86870e
Merge branch 'master' into readme-redirect
Rudxain Jul 12, 2022
ae8bea6
Rename B64
Rudxain Jul 12, 2022
f6c649f
Re-adding some inner links
Rudxain Jul 13, 2022
55f2b6c
Add some more links
Rudxain Jul 13, 2022
a21c8c6
Add all stage-0 links
Rudxain Jul 13, 2022
82c6ca0
Add all stage-3
Rudxain Jul 13, 2022
2ab084c
Rename `emplace` to `upsert`
Rudxain Jul 13, 2022
a6db465
Update README.md
Rudxain Jul 13, 2022
b495419
root is almost ready!
Rudxain Jul 13, 2022
90f0f12
All root links ready! (I guess)
Rudxain Jul 13, 2022
94d7a00
Merge branch 'zloirock:master' into readme-redirect
Rudxain Jul 17, 2022
32e7872
Add Iter-helpers heading
Rudxain Jul 17, 2022
9d47c4c
Move ES CJS EP to another README index
Rudxain Jul 17, 2022
0c49fe5
End move
Rudxain Jul 17, 2022
d844691
More specific ES link
Rudxain Jul 17, 2022
1215519
Add WIP ES index
Rudxain Jul 17, 2022
efeca09
Add W.E. description
Rudxain Jul 17, 2022
da37a70
Add proposals description
Rudxain Jul 17, 2022
f63670a
More helpful ES desc
Rudxain Jul 17, 2022
114f9e2
Move tc39P link
Rudxain Jul 17, 2022
e4365c8
Link moved
Rudxain Jul 17, 2022
78d8092
Reduce redundancy
Rudxain Jul 17, 2022
77b8abe
Begin move features section
Rudxain Jul 17, 2022
c653d31
Add Features README
Rudxain Jul 17, 2022
f12b42f
Update README.md
Rudxain Jul 17, 2022
69ef985
Specific feature links
Rudxain Jul 17, 2022
6273a9c
Begin move example
Rudxain Jul 17, 2022
41f69c5
Create example.md
Rudxain Jul 17, 2022
ba6eb4c
Fix and add more links
Rudxain Jul 17, 2022
314d4a9
Merge branch 'master' into readme-redirect
Rudxain Jul 18, 2022
a90703c
Update version
Rudxain Jul 18, 2022
69f0644
Update README.md
Rudxain Jul 18, 2022
1057735
Merge branch 'master' into readme-redirect
Rudxain Jul 26, 2022
e8923ef
Update docs from `master` README
Rudxain Jul 26, 2022
a0ea5ea
Fix too low header
Rudxain Aug 4, 2022
51fec38
Convert heading to line
Rudxain Aug 4, 2022
4f03d74
Fix headings at proposals README
Rudxain Aug 4, 2022
2ed6c1a
Move `of` & `from` to collection-methods
Rudxain Aug 4, 2022
7a2032d
Merge remote-tracking branch 'upstream/master' into readme-redirect
Rudxain Aug 4, 2022
d9e4a96
Update from master
Rudxain Aug 4, 2022
eaef9ac
Fix collection-methods
Rudxain Aug 4, 2022
b3da505
Merge remote-tracking branch 'upstream/master' into readme-redirect
Rudxain Aug 9, 2022
0fafc67
Merge remote-tracking branch 'upstream/master' into readme-redirect
Rudxain Aug 11, 2022
27d96ec
Move Example back to root
Rudxain Aug 12, 2022
3a1c899
Merge remote-tracking branch 'upstream/master' into readme-redirect
Rudxain Aug 16, 2022
7c28360
Merge remote-tracking branch 'upstream/master' into readme-redirect
Rudxain Aug 19, 2022
64823a3
Merge remote-tracking branch 'upstream/master' into readme-redirect
Rudxain Aug 20, 2022
ba02147
Merge remote-tracking branch 'upstream/master' into readme-redirect
Rudxain Aug 23, 2022
5d398eb
Merge remote-tracking branch 'upstream/master' into readme-redirect
Rudxain Aug 27, 2022
ecf44af
Resolve merge conflict
Rudxain Aug 27, 2022
8b6df50
Merge remote-tracking branch 'upstream/master' into readme-redirect
Rudxain Aug 27, 2022
d7b604e
Merge remote-tracking branch 'upstream/master' into readme-redirect
Rudxain Aug 28, 2022
4b4e00d
Merge branch 'zloirock:master' into readme-redirect
Rudxain Sep 3, 2022
7e4b806
Update README.md
Rudxain Sep 3, 2022
ee0f66f
Add index
Rudxain Sep 3, 2022
27b76bf
Update README.md
Rudxain Sep 3, 2022
564974c
Merge remote-tracking branch 'upstream/master' into readme-redirect
Rudxain Sep 4, 2022
35ab262
Merge remote-tracking branch 'upstream/master' into readme-redirect
Rudxain Sep 14, 2022
51bbfa4
Conflict correction
Rudxain Sep 15, 2022
f8fbefe
Merge remote-tracking branch 'upstream/master' into readme-redirect
Rudxain Sep 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,40 +66,40 @@ File names should be in the kebab-case. Name of polyfill modules should follow t
## Testing

Before testing, you should install dependencies:
```
```sh
$ npm i
```
You can run all tests by
```
```sh
$ npm run test
```
You can run parts of the test case separately:
- Linting:
```
```sh
$ npm run lint
```
- The global version unit tests:
```
```sh
$ npm run test-unit-global-standalone
```
- The pure version unit tests:
```
```sh
$ npm run test-unit-pure-standalone
```
- [Promises/A+](https://github.com/promises-aplus/promises-tests) and [ES6 `Promise`](https://github.com/promises-es6/promises-es6) test cases:
```
```sh
$ npm run test-promises-standalone
```
- [ECMAScript `Observable` test case](https://github.com/tc39/proposal-observable):
```
```sh
$ npm run test-observables-standalone
```
- CommonJS entry points tests:
```
```sh
$ npm run test-entries-standalone
```
- If you want to run tests in a certain browser, at first, you should build packages and test bundles:
```
```sh
$ npm run bundle-standalone
```
- For running the global version of the unit test case, use this file:
Expand Down
3,516 changes: 234 additions & 3,282 deletions README.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions deno/corejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

[![Open Collective](https://opencollective.com/core-js/all/badge.svg?label=open%20collective)](https://opencollective.com/core-js) [![version](https://img.shields.io/npm/v/core-js.svg)](https://www.npmjs.com/package/core-js) [![core-js downloads](https://img.shields.io/npm/dm/core-js.svg?label=npm%20i%20core-js)](https://npm-stat.com/charts.html?package=core-js&package=core-js-pure&package=core-js-compat&from=2014-11-18) [![core-js-pure downloads](https://img.shields.io/npm/dm/core-js-pure.svg?label=npm%20i%20core-js-pure)](https://npm-stat.com/charts.html?package=core-js&package=core-js-pure&package=core-js-compat&from=2014-11-18) [![tests](https://github.com/zloirock/core-js/workflows/tests/badge.svg)](https://github.com/zloirock/core-js/actions) [![eslint](https://github.com/zloirock/core-js/workflows/eslint/badge.svg)](https://github.com/zloirock/core-js/actions)

> Modular standard library for JavaScript. Includes polyfills for [ECMAScript up to 2021](https://github.com/zloirock/core-js#ecmascript): [promises](https://github.com/zloirock/core-js#ecmascript-promise), [symbols](https://github.com/zloirock/core-js#ecmascript-symbol), [collections](https://github.com/zloirock/core-js#ecmascript-collections), iterators, [typed arrays](https://github.com/zloirock/core-js#ecmascript-typed-arrays), many other features, [ECMAScript proposals](https://github.com/zloirock/core-js#ecmascript-proposals), [some cross-platform WHATWG / W3C features and proposals](#web-standards) like [`URL`](https://github.com/zloirock/core-js#url-and-urlsearchparams). You can load only required features or use it without global namespace pollution.
> Modular standard library for JavaScript. Includes polyfills for [ECMAScript up to 2021](/README.md#ecmascript): [promises](/README.md#ecmascript-promise), [symbols](/README.md#ecmascript-symbol), [collections](/README.md#ecmascript-collections), iterators, [typed arrays](/README.md#ecmascript-typed-arrays), many other features, [ECMAScript proposals](/README.md#ecmascript-proposals), [some cross-platform WHATWG / W3C features and proposals](/README.md#web-standards) like [`URL`](/README.md#url-and-urlsearchparams). You can load only required features or use it without global namespace pollution.

## As advertising: the author is looking for a good job -)

## [core-js@3, babel and a look into the future](https://github.com/zloirock/core-js/tree/master/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md)
## [core-js@3, babel and a look into the future](/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md)

## Raising funds

Expand Down Expand Up @@ -46,4 +46,4 @@ Promise.any([
.toArray(); // => [9, 25]
```

**It's a bundled global version for Deno 1.0+, for more info see [`core-js` documentation](https://github.com/zloirock/core-js/blob/master/README.md).**
**It's a bundled global version for Deno 1.0+, for more info see [`core-js` documentation](/README.md).**
21 changes: 21 additions & 0 deletions docs/compatibility-data.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Compat data
`core-js` project provides (as [`core-js-compat`](/packages/core-js-compat) package) all required data about the necessity of `core-js` modules, entry points, and tools for work with it - it's useful for integration with tools like `babel` or `swc`. If you wanna help, you could take a look at the related section of [`CONTRIBUTING.md`](/CONTRIBUTING.md#how-to-update-core-js-compat-data). The visualization of compatibility data and the browser tests runner is available [here](http://zloirock.github.io/core-js/compat/), the example:

![compat-table](https://user-images.githubusercontent.com/2213682/180694428-856bcd0f-cab3-446f-be1a-2f669614dcc0.png)

# Supported engines
**Tested in:**
- Chrome 26+
- Firefox 4+
- Safari 5+
- Opera 12+
- Internet Explorer 8+ (sure, IE8 with ES3 limitations; IE7- also should work, but no longer tested)
- Edge
- Android Browser 2.3+
- iOS Safari 5.1+
- PhantomJS 1.9+
- NodeJS 0.8+
- Deno 1.0+
- Rhino 1.7.14+

...and it doesn't mean `core-js` will not work in other engines, they just have not been tested.
10 changes: 10 additions & 0 deletions docs/features/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Features
These are divided in 3 main categories:
- [ES](ecmascript/README.md)
- [Proposals](proposals/README.md)
- [Web standards](web-standards/README.md)

[*CommonJS entry points:*](docs/usage.md#commonjs-api)
```
core-js(-pure)
```
24 changes: 24 additions & 0 deletions docs/features/ecmascript/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# ES
Polyfills for properties of global object namespaces.

[*CommonJS entry points:*](docs/usage.md#commonjs-api)
```
core-js(-pure)/es
```

## Index
- [`Object`](object.md)
- [`Function`](function.md)
- [`Error`](error.md)
- [`Array`](array.md)
- [`String` and `RegExp`](string%20and%20regexp.md)
- [`Number`](number.md)
- [`Math`](math.md)
- [`Date`](date.md)
- [`Promise`](promise.md)
- [`Symbol`](symbol.md)
- [Collections](collections.md)
- [`TypedArray`s](typed-array.md)
- [`Reflect`](reflect.md)
- [`JSON`](json.md)
- [`globalThis`](global-this.md)
165 changes: 165 additions & 0 deletions docs/features/ecmascript/array.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
# `Array`
Modules [`es.array.from`](/packages/core-js/modules/es.array.from.js), [`es.array.is-array`](/packages/core-js/modules/es.array.is-array.js), [`es.array.of`](/packages/core-js/modules/es.array.of.js), [`es.array.copy-within`](/packages/core-js/modules/es.array.copy-within.js), [`es.array.fill`](/packages/core-js/modules/es.array.fill.js), [`es.array.find`](/packages/core-js/modules/es.array.find.js), [`es.array.find-index`](/packages/core-js/modules/es.array.find-index.js), [`es.array.find-last`](/packages/core-js/modules/es.array.find-last.js), [`es.array.find-last-index`](/packages/core-js/modules/es.array.find-last-index.js), [`es.array.iterator`](/packages/core-js/modules/es.array.iterator.js), [`es.array.includes`](/packages/core-js/modules/es.array.includes.js), [`es.array.push`](/packages/core-js/modules/es.array.push.js), [`es.array.slice`](/packages/core-js/modules/es.array.slice.js), [`es.array.join`](/packages/core-js/modules/es.array.join.js), [`es.array.unshift`](/packages/core-js/modules/es.array.unshift.js), [`es.array.index-of`](/packages/core-js/modules/es.array.index-of.js), [`es.array.last-index-of`](/packages/core-js/modules/es.array.last-index-of.js), [`es.array.every`](/packages/core-js/modules/es.array.every.js), [`es.array.some`](/packages/core-js/modules/es.array.some.js), [`es.array.for-each`](/packages/core-js/modules/es.array.for-each.js), [`es.array.map`](/packages/core-js/modules/es.array.map.js), [`es.array.filter`](/packages/core-js/modules/es.array.filter.js), [`es.array.reduce`](/packages/core-js/modules/es.array.reduce.js), [`es.array.reduce-right`](/packages/core-js/modules/es.array.reduce-right.js), [`es.array.reverse`](/packages/core-js/modules/es.array.reverse.js), [`es.array.sort`](/packages/core-js/modules/es.array.sort.js), [`es.array.flat`](/packages/core-js/modules/es.array.flat.js), [`es.array.flat-map`](/packages/core-js/modules/es.array.flat-map.js), [`es.array.unscopables.flat`](/packages/core-js/modules/es.array.unscopables.flat.js), [`es.array.unscopables.flat-map`](/packages/core-js/modules/es.array.unscopables.flat-map.js), [`es.array.at`](/packages/core-js/modules/es.array.at.js).
```ts
class Array {
at(index: int): any;
concat(...args: Array<mixed>): Array<mixed>; // with adding support of @@isConcatSpreadable and @@species
copyWithin(target: number, start: number, end?: number): this;
entries(): Iterator<[index, value]>;
every(callbackfn: (value: any, index: number, target: any) => boolean, thisArg?: any): boolean;
fill(value: any, start?: number, end?: number): this;
filter(callbackfn: (value: any, index: number, target: any) => boolean, thisArg?: any): Array<mixed>; // with adding support of @@species
find(callbackfn: (value: any, index: number, target: any) => boolean), thisArg?: any): any;
findIndex(callbackfn: (value: any, index: number, target: any) => boolean, thisArg?: any): uint;
findLast(callbackfn: (value: any, index: number, target: any) => boolean, thisArg?: any): any;
findLastIndex(callbackfn: (value: any, index: number, target: any) => boolean, thisArg?: any): uint;
flat(depthArg?: number = 1): Array<mixed>;
flatMap(mapFn: (value: any, index: number, target: any) => any, thisArg: any): Array<mixed>;
forEach(callbackfn: (value: any, index: number, target: any) => void, thisArg?: any): void;
includes(searchElement: any, from?: number): boolean;
indexOf(searchElement: any, from?: number): number;
join(separator: string = ','): string;
keys(): Iterator<index>;
lastIndexOf(searchElement: any, from?: number): number;
map(mapFn: (value: any, index: number, target: any) => any, thisArg?: any): Array<mixed>; // with adding support of @@species
push(...args: Array<mixed>): uint;
reduce(callbackfn: (memo: any, value: any, index: number, target: any) => any, initialValue?: any): any;
reduceRight(callbackfn: (memo: any, value: any, index: number, target: any) => any, initialValue?: any): any;
reverse(): this; // Safari 12.0 bug fix
slice(start?: number, end?: number): Array<mixed>; // with adding support of @@species
splice(start?: number, deleteCount?: number, ...items: Array<mixed>): Array<mixed>; // with adding support of @@species
some(callbackfn: (value: any, index: number, target: any) => boolean, thisArg?: any): boolean;
sort(comparefn?: (a: any, b: any) => number): this; // with modern behavior like stable sort
unshift(...args: Array<mixed>): uint;
values(): Iterator<value>;
@@iterator(): Iterator<value>;
@@unscopables: { [newMethodNames: string]: true };
static from(items: Iterable | ArrayLike, mapFn?: (value: any, index: number) => any, thisArg?: any): Array<mixed>;
static isArray(value: any): boolean;
static of(...args: Array<mixed>): Array<mixed>;
}

class Arguments {
@@iterator(): Iterator<value>; // available only in core-js methods
}
```
[*CommonJS entry points:*](/docs/usage.md#commonjs-api)
```
core-js(-pure)/es|stable|actual|full/array
core-js(-pure)/es|stable|actual|full/array/from
core-js(-pure)/es|stable|actual|full/array/of
core-js(-pure)/es|stable|actual|full/array/is-array
core-js(-pure)/es|stable|actual|full/array/at
core-js(-pure)/es|stable|actual|full/array/concat
core-js(-pure)/es|stable|actual|full/array/entries
core-js(-pure)/es|stable|actual|full/array/every
core-js(-pure)/es|stable|actual|full/array/copy-within
core-js(-pure)/es|stable|actual|full/array/fill
core-js(-pure)/es|stable|actual|full/array/filter
core-js(-pure)/es|stable|actual|full/array/find
core-js(-pure)/es|stable|actual|full/array/find-index
core-js(-pure)/es|stable|actual|full/array/find-last
core-js(-pure)/es|stable|actual|full/array/find-last-index
core-js(-pure)/es|stable|actual|full/array/flat
core-js(-pure)/es|stable|actual|full/array/flat-map
core-js(-pure)/es|stable|actual|full/array/for-each
core-js(-pure)/es|stable|actual|full/array/includes
core-js(-pure)/es|stable|actual|full/array/index-of
core-js(-pure)/es|stable|actual|full/array/iterator
core-js(-pure)/es|stable|actual|full/array/join
core-js(-pure)/es|stable|actual|full/array/keys
core-js(-pure)/es|stable|actual|full/array/last-index-of
core-js(-pure)/es|stable|actual|full/array/map
core-js(-pure)/es|stable|actual|full/array/push
core-js(-pure)/es|stable|actual|full/array/reduce
core-js(-pure)/es|stable|actual|full/array/reduce-right
core-js(-pure)/es|stable|actual|full/array/reverse
core-js(-pure)/es|stable|actual|full/array/slice
core-js(-pure)/es|stable|actual|full/array/splice
core-js(-pure)/es|stable|actual|full/array/some
core-js(-pure)/es|stable|actual|full/array/sort
core-js(-pure)/es|stable|actual|full/array/unshift
core-js(-pure)/es|stable|actual|full/array/values
core-js(-pure)/es|stable|actual|full/array/virtual/at
core-js(-pure)/es|stable|actual|full/array/virtual/concat
core-js(-pure)/es|stable|actual|full/array/virtual/copy-within
core-js(-pure)/es|stable|actual|full/array/virtual/entries
core-js(-pure)/es|stable|actual|full/array/virtual/every
core-js(-pure)/es|stable|actual|full/array/virtual/fill
core-js(-pure)/es|stable|actual|full/array/virtual/filter
core-js(-pure)/es|stable|actual|full/array/virtual/find
core-js(-pure)/es|stable|actual|full/array/virtual/find-index
core-js(-pure)/es|stable|actual|full/array/virtual/find-last
core-js(-pure)/es|stable|actual|full/array/virtual/find-last-index
core-js(-pure)/es|stable|actual|full/array/virtual/flat
core-js(-pure)/es|stable|actual|full/array/virtual/flat-map
core-js(-pure)/es|stable|actual|full/array/virtual/for-each
core-js(-pure)/es|stable|actual|full/array/virtual/includes
core-js(-pure)/es|stable|actual|full/array/virtual/index-of
core-js(-pure)/es|stable|actual|full/array/virtual/iterator
core-js(-pure)/es|stable|actual|full/array/virtual/join
core-js(-pure)/es|stable|actual|full/array/virtual/keys
core-js(-pure)/es|stable|actual|full/array/virtual/last-index-of
core-js(-pure)/es|stable|actual|full/array/virtual/map
core-js(-pure)/es|stable|actual|full/array/virtual/push
core-js(-pure)/es|stable|actual|full/array/virtual/reduce
core-js(-pure)/es|stable|actual|full/array/virtual/reduce-right
core-js(-pure)/es|stable|actual|full/array/virtual/reverse
core-js(-pure)/es|stable|actual|full/array/virtual/slice
core-js(-pure)/es|stable|actual|full/array/virtual/some
core-js(-pure)/es|stable|actual|full/array/virtual/sort
core-js(-pure)/es|stable|actual|full/array/virtual/splice
core-js(-pure)/es|stable|actual|full/array/virtual/unshift
core-js(-pure)/es|stable|actual|full/array/virtual/values
```
[*Examples*](https://tinyurl.com/2br28bgj):
```js
Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
Array.from({ 0: 1, 1: 2, 2: 3, length: 3 }); // => [1, 2, 3]
Array.from('123', Number); // => [1, 2, 3]
Array.from('123', it => it * it); // => [1, 4, 9]

Array.of(1); // => [1]
Array.of(1, 2, 3); // => [1, 2, 3]

let array = ['a', 'b', 'c'];

for (let value of array) console.log(value); // => 'a', 'b', 'c'
for (let value of array.values()) console.log(value); // => 'a', 'b', 'c'
for (let key of array.keys()) console.log(key); // => 0, 1, 2
for (let [key, value] of array.entries()) {
console.log(key); // => 0, 1, 2
console.log(value); // => 'a', 'b', 'c'
}

function isOdd(value) {
return value % 2;
}
[4, 8, 15, 16, 23, 42].find(isOdd); // => 15
[4, 8, 15, 16, 23, 42].findIndex(isOdd); // => 2
[1, 2, 3, 4].findLast(isOdd); // => 3
[1, 2, 3, 4].findLastIndex(isOdd); // => 2

Array(5).fill(42); // => [42, 42, 42, 42, 42]

[1, 2, 3, 4, 5].copyWithin(0, 3); // => [4, 5, 3, 4, 5]


[1, 2, 3].includes(2); // => true
[1, 2, 3].includes(4); // => false
[1, 2, 3].includes(2, 2); // => false

[NaN].indexOf(NaN); // => -1
[NaN].includes(NaN); // => true
Array(1).indexOf(undefined); // => -1
Array(1).includes(undefined); // => true

[1, [2, 3], [4, 5]].flat(); // => [1, 2, 3, 4, 5]
[1, [2, [3, [4]]], 5].flat(); // => [1, 2, [3, [4]], 5]
[1, [2, [3, [4]]], 5].flat(3); // => [1, 2, 3, 4, 5]

[{ a: 1, b: 2 }, { a: 3, b: 4 }, { a: 5, b: 6 }].flatMap(it => [it.a, it.b]); // => [1, 2, 3, 4, 5, 6]

[1, 2, 3].at(1); // => 2
[1, 2, 3].at(-1); // => 3
```
Loading