Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Add core-js implementation #59

Merged
merged 3 commits into from
Apr 3, 2022
Merged
Changes from all commits
Commits
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
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@ Provides additional methods on `Array.prototype` and `TypedArray.prototype` to e
This proposal is currently at [Stage 3].

- [Candidate spec text][spec]
- [Candidate polyfill][poly]

[Stage 3]: https://github.com/tc39/proposals#stage-3
[spec]: https://tc39.es/proposal-change-array-by-copy/
[poly]: ./polyfill.js


## Champions

Expand Down Expand Up @@ -43,7 +40,7 @@ They will also be added to TypedArrays:
- `TypedArray.prototype.toSpliced(start, deleteCount, ...items) -> TypedArray`
- `TypedArray.prototype.with(index, value) -> TypedArray`

These methods will then be avaliable on subclasses of `TypedArray`. i.e. the following:
These methods will then be available on subclasses of `TypedArray`. i.e. the following:

- `Int8Array`
- `Uint8Array`
Expand Down Expand Up @@ -90,8 +87,13 @@ If web compatibility prescribes it, property names defined in this proposal are

## Implementations

- [core-js](https://github.com/zloirock/core-js)
- [change-array-by-copy](https://github.com/zloirock/core-js#change-array-by-copy)

- [es-shims](https://github.com/es-shims):
- [`array.prototype.tosorted`](https://www.npmjs.com/package/array.prototype.tosorted)
- [`array.prototype.toreversed`](https://www.npmjs.com/package/array.prototype.toreversed)
- [`array.prototype.tospliced`](https://www.npmjs.com/package/array.prototype.tospliced)
- [`array.prototype.with`](https://www.npmjs.com/package/array.prototype.with)

- [./polyfill.js](./polyfill.js) (minimalist reference implementation)