Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / modules / esnext.map.includes.js
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
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 });