72ab559881f1db8592437f478bd604ee2ec23a9cf656c552f0c1fbe21582779c061db785f89c61de25ae5b606fbbbdc33e1569d085805835b5699902baad22 561 B

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