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
|
|
|
|
var $export = require('./_export')
|
|
|
|
, $includes = require('./_array-includes')(true);
|
2016-10-10 03:43:44 +02:00
|
|
|
|
|
|
|
$export($export.P, 'Array', {
|
|
|
|
includes: function includes(el /*, fromIndex = 0 */){
|
|
|
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2017-05-27 17:36:13 +02:00
|
|
|
require('./_add-to-unscopables')('includes');
|