esnext.set.is-superset-of.js 533 B

1234567891011121314
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var call = require('../internals/function-call');
  4. var toSetLike = require('../internals/to-set-like');
  5. var $isSupersetOf = require('../internals/set-is-superset-of');
  6. // `Set.prototype.isSupersetOf` method
  7. // https://github.com/tc39/proposal-set-methods
  8. // TODO: Obsolete version, remove from `core-js@4`
  9. $({ target: 'Set', proto: true, real: true, forced: true }, {
  10. isSupersetOf: function isSupersetOf(other) {
  11. return call($isSupersetOf, this, toSetLike(other));
  12. }
  13. });