amis-rpc-design/node_modules/core-js/modules/esnext.map.update-or-insert.js

11 lines
372 B
JavaScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
'use strict';
// TODO: remove from `core-js@4`
var $ = require('../internals/export');
var upsert = require('../internals/map-upsert');
// `Map.prototype.updateOrInsert` method (replaced by `Map.prototype.emplace`)
// https://github.com/thumbsupep/proposal-upsert
$({ target: 'Map', proto: true, real: true, name: 'upsert', forced: true }, {
updateOrInsert: upsert
});