es7.array.includes.js 379 B

123456789101112
  1. 'use strict';
  2. // https://github.com/tc39/Array.prototype.includes
  3. var $export = require('./_export');
  4. var $includes = require('./_array-includes')(true);
  5. $export($export.P, 'Array', {
  6. includes: function includes(el /* , fromIndex = 0 */) {
  7. return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
  8. }
  9. });
  10. require('./_add-to-unscopables')('includes');