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.typed-array.filter.js 690B

1234567891011121314
  1. 'use strict';
  2. var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
  3. var $filter = require('../internals/array-iteration').filter;
  4. var fromSpeciesAndList = require('../internals/typed-array-from-species-and-list');
  5. var aTypedArray = ArrayBufferViewCore.aTypedArray;
  6. var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
  7. // `%TypedArray%.prototype.filter` method
  8. // https://tc39.es/ecma262/#sec-%typedarray%.prototype.filter
  9. exportTypedArrayMethod('filter', function filter(callbackfn /* , thisArg */) {
  10. var list = $filter(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  11. return fromSpeciesAndList(this, list);
  12. });