Skip to content

Commit

Permalink
fix a typo, remove a note about obsolete module
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Oct 29, 2019
1 parent 29b2b46 commit e3f4c9e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1884,10 +1884,9 @@ require('core-js');
(async function * () { /* empty */ })() instanceof AsyncIterator; // => true
```
##### [`Map#upsert`](https://github.com/thumbsupep/proposal-upsert)
Modules [`esnext.map.upsert`](https://github.com/zloirock/core-js/blob/v3.3.5/packages/core-js/modules/esnext.map.upsert.js), [`esnext.map.update-or-insert`](https://github.com/zloirock/core-js/blob/v3.3.5/packages/core-js/modules/esnext.map.update-or-insert.js) and [`esnext.weak-map.update-or-insert`](https://github.com/zloirock/core-js/blob/v3.3.5/packages/core-js/modules/esnext.weak-map.update-or-insert.js)
Modules [`esnext.map.upsert`](https://github.com/zloirock/core-js/blob/v3.3.5/packages/core-js/modules/esnext.map.upsert.js) and [`esnext.weak-map.upsert`](https://github.com/zloirock/core-js/blob/v3.3.5/packages/core-js/modules/esnext.weak-map.upsert.js)
```js
class Map {
updateOrInsert(key: any, onUpdate: (value: any) => updated: any, onInsert: () => value: any): updated | value; (obsolete in favor `.upsert`)
upsert(key: any, onUpdate: (value: any) => updated: any, onInsert: () => value: any): updated | value;
}

Expand All @@ -1898,7 +1897,6 @@ class WeakMap {
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/map-upsert
core-js(-pure)/features/map/update-or-insert
core-js(-pure)/features/map/upsert
core-js(-pure)/features/weak-map/upsert
```
Expand Down

0 comments on commit e3f4c9e

Please sign in to comment.