esnext.map.update-or-insert.js 408 B

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