esnext.map.upsert.js 321 B

12345678910
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var IS_PURE = require('../internals/is-pure');
  4. var $upsert = require('../internals/map-upsert');
  5. // `Map.prototype.upsert` method
  6. // https://github.com/thumbsupep/proposal-upsert
  7. $({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
  8. upsert: $upsert
  9. });