source: trip-planner-front/node_modules/core-js/modules/esnext.map.includes.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 752 bytes
Line 
1'use strict';
2var $ = require('../internals/export');
3var IS_PURE = require('../internals/is-pure');
4var anObject = require('../internals/an-object');
5var getMapIterator = require('../internals/get-map-iterator');
6var sameValueZero = require('../internals/same-value-zero');
7var iterate = require('../internals/iterate');
8
9// `Map.prototype.includes` method
10// https://github.com/tc39/proposal-collection-methods
11$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
12 includes: function includes(searchElement) {
13 return iterate(getMapIterator(anObject(this)), function (key, value, stop) {
14 if (sameValueZero(value, searchElement)) return stop();
15 }, { AS_ENTRIES: true, IS_ITERATOR: true, INTERRUPTED: true }).stopped;
16 }
17});
Note: See TracBrowser for help on using the repository browser.