Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

es.array.filter.js 622B

123456789101112131415
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var $filter = require('../internals/array-iteration').filter;
  4. var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
  5. var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
  6. // `Array.prototype.filter` method
  7. // https://tc39.es/ecma262/#sec-array.prototype.filter
  8. // with adding support of @@species
  9. $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
  10. filter: function filter(callbackfn /* , thisArg */) {
  11. return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  12. }
  13. });