2016-10-10 03:43:44 +02:00
|
|
|
'use strict';
|
2017-04-20 03:09:25 +02:00
|
|
|
var $export = require('./$.export')
|
|
|
|
, $includes = require('./$.array-includes')(true);
|
2016-10-10 03:43:44 +02:00
|
|
|
|
|
|
|
$export($export.P, 'Array', {
|
2017-04-20 03:09:25 +02:00
|
|
|
// https://github.com/domenic/Array.prototype.includes
|
2016-10-10 03:43:44 +02:00
|
|
|
includes: function includes(el /*, fromIndex = 0 */){
|
|
|
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2017-04-20 03:09:25 +02:00
|
|
|
require('./$.add-to-unscopables')('includes');
|