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.of.js 742B

12345678910111213141516
  1. 'use strict';
  2. var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
  3. var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require('../internals/typed-array-constructors-require-wrappers');
  4. var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
  5. var exportTypedArrayStaticMethod = ArrayBufferViewCore.exportTypedArrayStaticMethod;
  6. // `%TypedArray%.of` method
  7. // https://tc39.es/ecma262/#sec-%typedarray%.of
  8. exportTypedArrayStaticMethod('of', function of(/* ...items */) {
  9. var index = 0;
  10. var length = arguments.length;
  11. var result = new (aTypedArrayConstructor(this))(length);
  12. while (length > index) result[index] = arguments[index++];
  13. return result;
  14. }, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS);