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.map.js 788B

12345678910111213141516
  1. 'use strict';
  2. var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
  3. var $map = require('../internals/array-iteration').map;
  4. var speciesConstructor = require('../internals/species-constructor');
  5. var aTypedArray = ArrayBufferViewCore.aTypedArray;
  6. var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
  7. var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
  8. // `%TypedArray%.prototype.map` method
  9. // https://tc39.es/ecma262/#sec-%typedarray%.prototype.map
  10. exportTypedArrayMethod('map', function map(mapfn /* , thisArg */) {
  11. return $map(aTypedArray(this), mapfn, arguments.length > 1 ? arguments[1] : undefined, function (O, length) {
  12. return new (aTypedArrayConstructor(speciesConstructor(O, O.constructor)))(length);
  13. });
  14. });