UNPKG

372 BJavaScriptView Raw
1'use strict';
2// TODO: remove from `core-js@4`
3var $ = require('../internals/export');
4var upsert = require('../internals/map-upsert');
5
6// `Map.prototype.updateOrInsert` method (replaced by `Map.prototype.emplace`)
7// https://github.com/thumbsupep/proposal-upsert
8$({ target: 'Map', proto: true, real: true, name: 'upsert', forced: true }, {
9 updateOrInsert: upsert
10});