2016-10-10 03:43:44 +02:00
|
|
|
'use strict';
|
2017-05-27 17:36:13 +02:00
|
|
|
// https://github.com/tc39/Array.prototype.includes
|
2017-08-14 05:01:11 +02:00
|
|
|
var $export = require('./_export');
|
|
|
|
var $includes = require('./_array-includes')(true);
|
2016-10-10 03:43:44 +02:00
|
|
|
|
|
|
|
$export($export.P, 'Array', {
|
2017-08-14 05:01:11 +02:00
|
|
|
includes: function includes(el /* , fromIndex = 0 */) {
|
2016-10-10 03:43:44 +02:00
|
|
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2017-08-14 05:01:11 +02:00
|
|
|
require('./_add-to-unscopables')('includes');
|