Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

esnext.map.includes.js 752B

1234567891011121314151617
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var IS_PURE = require('../internals/is-pure');
  4. var anObject = require('../internals/an-object');
  5. var getMapIterator = require('../internals/get-map-iterator');
  6. var sameValueZero = require('../internals/same-value-zero');
  7. var iterate = require('../internals/iterate');
  8. // `Map.prototype.includes` method
  9. // https://github.com/tc39/proposal-collection-methods
  10. $({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
  11. includes: function includes(searchElement) {
  12. return iterate(getMapIterator(anObject(this)), function (key, value, stop) {
  13. if (sameValueZero(value, searchElement)) return stop();
  14. }, { AS_ENTRIES: true, IS_ITERATOR: true, INTERRUPTED: true }).stopped;
  15. }
  16. });