Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / modules / es.array.includes.js
1 'use strict';
2 var $ = require('../internals/export');
3 var $includes = require('../internals/array-includes').includes;
4 var addToUnscopables = require('../internals/add-to-unscopables');
5 var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
6
7 var USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });
8
9 // `Array.prototype.includes` method
10 // https://tc39.github.io/ecma262/#sec-array.prototype.includes
11 $({ target: 'Array', proto: true, forced: !USES_TO_LENGTH }, {
12   includes: function includes(el /* , fromIndex = 0 */) {
13     return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
14   }
15 });
16
17 // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
18 addToUnscopables('includes');