2019-09-25 13:30:05 +05:30
|
|
|
'use strict';
|
2019-10-31 01:37:42 +05:30
|
|
|
// TODO: remove from `core-js@4`
|
2019-09-25 13:30:05 +05:30
|
|
|
var $ = require('../internals/export');
|
|
|
|
var IS_PURE = require('../internals/is-pure');
|
2019-10-31 01:37:42 +05:30
|
|
|
var $upsert = require('../internals/map-upsert');
|
2019-09-25 13:30:05 +05:30
|
|
|
|
2019-10-31 01:37:42 +05:30
|
|
|
// `Map.prototype.updateOrInsert` method (replaced by `Map.prototype.upsert`)
|
|
|
|
// https://github.com/thumbsupep/proposal-upsert
|
2019-09-25 13:30:05 +05:30
|
|
|
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
|
2019-10-31 01:37:42 +05:30
|
|
|
updateOrInsert: $upsert
|
2019-09-25 13:30:05 +05:30
|
|
|
});
|