From e3f4c9eaa4ccb7119363e8fac756eb015310a71d Mon Sep 17 00:00:00 2001 From: Denis Pushkarev Date: Tue, 29 Oct 2019 08:04:54 +0700 Subject: [PATCH] fix a typo, remove a note about obsolete module --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 071cade63763..6c80ee0f53f9 100644 --- a/README.md +++ b/README.md @@ -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; } @@ -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 ```